Documentation ¶
Overview ¶
Package word provides utilities for word games. It also shows how to write tests and examples.
Adapted from github.com/adonovan/gopl.io/tree/master/ch11/word2
Level: intermediate Topics: unicode, testing, rand
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsPalindrome ¶
IsPalindrome reports whether s reads the same forward and backward. Letter case is ignored, as are non-letters.
Example ¶
fmt.Println(IsPalindrome("A man, a plan, a canal: Panama")) fmt.Println(IsPalindrome("palindrome"))
Output: true false
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.