Home »
Code Examples »
Golang Code Examples
Golang - Capitalise string using title method Code Example
The code for Capitalise string using title method
package main
import (
"fmt"
"golang.org/x/text/cases"
"golang.org/x/text/language"
)
func main() {
str := "Hello world, how are you?"
caser := cases.Title(language.English)
}
Code by IncludeHelp,
on February 28, 2023 15:22