Update: docs examples

This commit is contained in:
Dobrosław Żybort 2013-05-10 17:51:12 +02:00
parent 47713d7297
commit 42cef834b2
2 changed files with 12 additions and 0 deletions

View File

@ -27,6 +27,12 @@ multiple languages support.
deText := slug.MakeLang("Diese & Dass", "de")
fmt.Println(deText) // Will print 'diese-und-dass'
slug.CustomSub = map[string]string{
"water": "sand",
}
textSub := slug.Make("water is hot")
fmt.Println(textSub) // Will print 'sand-is-hot'
}
### Requests or bugs?

6
doc.go
View File

@ -28,6 +28,12 @@ Example:
deText := slug.MakeLang("Diese & Dass", "de")
fmt.Println(deText) // Will print 'diese-und-dass'
slug.CustomSub = map[string]string{
"water": "sand",
}
textSub := slug.Make("water is hot")
fmt.Println(textSub) // Will print 'sand-is-hot'
}
Requests or bugs?