Update: docs examples
This commit is contained in:
parent
47713d7297
commit
42cef834b2
@ -27,6 +27,12 @@ multiple languages support.
|
|||||||
|
|
||||||
deText := slug.MakeLang("Diese & Dass", "de")
|
deText := slug.MakeLang("Diese & Dass", "de")
|
||||||
fmt.Println(deText) // Will print 'diese-und-dass'
|
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?
|
### Requests or bugs?
|
||||||
|
6
doc.go
6
doc.go
@ -28,6 +28,12 @@ Example:
|
|||||||
|
|
||||||
deText := slug.MakeLang("Diese & Dass", "de")
|
deText := slug.MakeLang("Diese & Dass", "de")
|
||||||
fmt.Println(deText) // Will print 'diese-und-dass'
|
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?
|
Requests or bugs?
|
||||||
|
Loading…
Reference in New Issue
Block a user