gobyexample/examples/string-functions/string-functions.sh
2016-12-27 07:05:58 -08: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