Documentation ¶ Overview ¶ Package stringutil demonstrates how to define a package besides main. It's from the tutorial "How to Write Go Code" in https://golang.org/doc/code.html Index ¶ func Reverse(s string) string Examples ¶ Reverse Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Reverse ¶ func Reverse(s string) string Example ¶ s := "abcdefg" s2 := Reverse(s) fmt.Println(s, s2) Output: abcdefg gfedcba Types ¶ This section is empty. Source Files ¶ View all Source files reverse.go Click to show internal directories. Click to hide internal directories.