Initial commit

This commit is contained in:
Patricio Whittingslow
2024-12-23 18:37:48 -03:00
committed by GitHub
commit 53f3296e99
8 changed files with 212 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
// package gomoduletemplate is a template repository
// for creating new Go modules with basic CI instrumentation.
package gomoduletemplate
// Fibonacci returns the nth number in the Fibonacci sequence.
func Fibonacci(n int) int {
a, b := 0, 1
for i := 0; i < n; i++ {
a, b = b, a+b
}
return a
}