diff options
author | 2015-02-25 16:45:20 +0100 | |
---|---|---|
committer | 2015-02-25 16:45:20 +0100 | |
commit | d08b27fa9701fecfdb69e1b0d1ac2459efc2129b (patch) | |
tree | 5d50963026239ca5aebfb47ea5b8db7e814e57c8 /base_workspace/examples/go/lib1/lib1.go |
Update from Google.
--
MOE_MIGRATED_REVID=85702957
Diffstat (limited to 'base_workspace/examples/go/lib1/lib1.go')
-rw-r--r-- | base_workspace/examples/go/lib1/lib1.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/base_workspace/examples/go/lib1/lib1.go b/base_workspace/examples/go/lib1/lib1.go new file mode 100644 index 0000000000..f42494770d --- /dev/null +++ b/base_workspace/examples/go/lib1/lib1.go @@ -0,0 +1,9 @@ +package lib1 + +func Fib(n int) int { + if n < 2 { + return 1 + } + + return Fib(n-1) + Fib(n-2) +} |