Mastering-Go-Second-Edition/ch11/documentMe_test.go
2019-01-10 22:09:57 +02:00

21 lines
223 B
Go

package documentMe
import (
"fmt"
)
func ExampleS1() {
fmt.Println(S1("123456789"))
fmt.Println(S1(""))
// Output:
// 9
// 0
}
func ExampleF1() {
fmt.Println(F1(10))
fmt.Println(F1(2))
// Output:
// 1
// 55
}