我有一个像这样的字符串
var sentence string = "the biggest ocean is the Pacific ocean"
Run Code Online (Sandbox Code Playgroud)
我希望能够将t输入字符串中的第一个字母大写,以便该字符串变成
"The biggest ocean is the Pacific ocean"
Run Code Online (Sandbox Code Playgroud)
在 Go 中如何做到这一点?
我尝试过使用strings.Title,strings.ToTitle但他们没有做我想要的。