Golang capitalize first letter

Capitalize a string in Go (Golang)

package main

import (
    "fmt"
    "strings"
)

func main() {
    res := strings.Title("this is a test sentence")
    fmt.Println(res)
}

Output:

This Is A Test Sentence