ex

package
v0.0.0-...-55170d7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 12, 2019 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package ex 是用来测试例子函数的 只是一个例子

Index

Examples

Constants

View Source
const P = 3.14

P 圆周率

Variables

This section is empty.

Functions

func F1

func F1(n int) int

F1 计算斐波拉切数列

Example
fmt.Println(F1(10))
fmt.Println(F1(2))
Output:

55
1

func S1

func S1(s string) int

S1 计算字符串长度jj

Example
fmt.Println(S1("12345"))
fmt.Println(S1(""))
Output:

5
0

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL