Confusing ToUpper and ToTitle

后端 未结 5 1285
长发绾君心
长发绾君心 2021-01-01 16:18

Is there any difference between the ToUpper and the ToTitle function?

5条回答
  •  孤城傲影
    2021-01-01 16:43

    I had the same problem. You want to use the strings.Title() method not the strings.ToTitle() method.

    http://golang.org/pkg/strings/#Title

提交回复
热议问题