mirror of
https://github.com/soypat/lneto.git
synced 2026-08-19 06:04:01 +00:00
Initial commit
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user