#974·lo

Capitalize upper cases format characters

Author: TLINDENCreated Aug 16, 2026Updated Aug 18, 2026
go
fmt.Println(`strf("%d%m") => `, lo.Capitalize(`strf("%d%m")`))

prints:

bash
strf("%d%m") =>  Strf("%D%M")

It upper cases the first char as expected but also all the characters preceded by a %.