Files
lneto/module.go
T
Patricio Whittingslow 53f3296e99 Initial commit
2024-12-23 18:37:48 -03:00

13 lines
303 B
Go

// 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
}