gobyexample/examples/string-functions/string-functions.sh
2012-10-30 14:44:13 -07:00

17 lines
251 B
Bash

$ go run string-functions.go
Contains: true
Count: 2
HasPrefix: true
HasSuffix: true
Index: 1
Join: a-b
Repeat: aaaaa
Replace: f00
Replace: f0o
Split: [a b c d e]
toLower: test
ToUpper: TEST
Len: 5
Char: 101