How to title (capitalize) a string in Go

1 Answer

0 votes
package main
  
import (
    "fmt"
    "strings"
)
  
func main() {
    s := strings.Title("go java python c++")
     
    fmt.Printf(s)
}
  
  
  
/*
run:
   
Go Java Python C++
   
*/

 



answered Aug 20, 2020 by avibootz
...