Skip to content

Instantly share code, notes, and snippets.

@sunho
Created January 13, 2018 22:18
Show Gist options
  • Save sunho/6decc493395db79df417265e174642d6 to your computer and use it in GitHub Desktop.
Save sunho/6decc493395db79df417265e174642d6 to your computer and use it in GitHub Desktop.
type path []byte
func (p path) ToUpper() {
for i, b := range p {
if 'a' <= b && b <= 'z' {
p[i] = b + 'A' - 'a'
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment