bunch of changes
Some checks failed
Build / build (push) Failing after 5m54s
Publish Image / publish (push) Failing after 35s
Test / build (push) Failing after 5m46s

This commit is contained in:
Chuck Smith
2024-03-28 17:19:23 -04:00
parent 244b71d245
commit fb0cebaf56
16 changed files with 174 additions and 320 deletions

25
examples/fib.go Normal file
View File

@@ -0,0 +1,25 @@
//go:build ignore
package main
import (
"fmt"
"os"
"strconv"
)
func fib(x int) int {
if x < 2 {
return x
}
return fib(x-1) + fib(x-2)
}
var n = 35
func main() {
if len(os.Args) > 2 {
n, _ = strconv.Atoi(os.Args[1])
}
fmt.Println(fib(n))
}