...

Source file src/go.einride.tech/aip/reflect/aipreflect/strcase.go

Documentation: go.einride.tech/aip/reflect/aipreflect

     1  package aipreflect
     2  
     3  import (
     4  	"unicode"
     5  	"unicode/utf8"
     6  )
     7  
     8  func initialUpperCase(s string) string {
     9  	if len(s) == 0 {
    10  		return s
    11  	}
    12  	r, n := utf8.DecodeRuneInString(s)
    13  	return string(unicode.ToUpper(r)) + s[n:]
    14  }
    15  

View as plain text