Fix: docs example
This commit is contained in:
parent
0026c10e90
commit
dba1820a69
@ -15,17 +15,19 @@ multiple languages support.
|
||||
"fmt"
|
||||
)
|
||||
|
||||
func main () {
|
||||
text := slug.Make("Hellö Wörld хелло ворлд")
|
||||
fmt.Println(text) // Will print: hello-world-khello-vorld
|
||||
fmt.Println(text) // Will print hello-world-khello-vorld
|
||||
|
||||
someText := slug.Make("影師")
|
||||
fmt.Println(someText) // Will print: ying-shi
|
||||
|
||||
enText := slug.MakeLang("This & that", "en")
|
||||
fmt.Println(enText) // Will print: this-and-that
|
||||
fmt.Println(enText) // Will print 'this-and-that'
|
||||
|
||||
deText := slug.MakeLang("Diese & Dass", "de")
|
||||
fmt.Println(deText) // Will print: diese-und-dass
|
||||
fmt.Println(deText) // Will print 'diese-und-dass'
|
||||
}
|
||||
|
||||
### Requests or bugs?
|
||||
<https://bitbucket.org/gosimple/slug/issues>
|
||||
|
2
doc.go
2
doc.go
@ -16,6 +16,7 @@ Example:
|
||||
"fmt"
|
||||
)
|
||||
|
||||
func main () {
|
||||
text := slug.Make("Hellö Wörld хелло ворлд")
|
||||
fmt.Println(text) // Will print hello-world-khello-vorld
|
||||
|
||||
@ -27,6 +28,7 @@ Example:
|
||||
|
||||
deText := slug.MakeLang("Diese & Dass", "de")
|
||||
fmt.Println(deText) // Will print 'diese-und-dass'
|
||||
}
|
||||
|
||||
Requests or bugs?
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user