Just wanted to put this out there. I think a transformation like this saves some typing. func (${1:structName} *${1:$(upcase-initials yas-text)}) ${2:FunctionName} () error { $0 return nil } Last update in the repo was 12 years ago I think. So not sure if you are still actively using/developing it.