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

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.