Documentation ¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertString ¶
ConvertString function converts kana character in text string.
Example ¶
package main import ( "fmt" "github.com/goark/gnkf/kana" ) func main() { txt := "あいうえおわゐゑをんゔゕゖゝゞアイウエオワヰヱヲンヴヵヶヽヾ" fmt.Println(kana.ConvertString(kana.Hiragana, txt, false)) fmt.Println(kana.ConvertString(kana.Katakana, txt, false)) fmt.Println(kana.ConvertString(kana.Chokuon, txt, false)) }
Output: あいうえおわゐゑをんゔゕゖゝゞあいうえおわゐゑをんゔゕゖゝゞ アイウエオワヰヱヲンヴヵヶヽヾアイウエオワヰヱヲンヴヵヶヽヾ あいうえおわゐゑをんゔかけゝゞアイウエオワヰヱヲンヴカケヽヾ
Types ¶
Click to show internal directories.
Click to hide internal directories.