Skip to content

Instantly share code, notes, and snippets.

@karlseguin
Created August 13, 2020 02:05
Show Gist options
  • Save karlseguin/678cf82bb65290ec586dcae2999f5f78 to your computer and use it in GitHub Desktop.
Save karlseguin/678cf82bb65290ec586dcae2999f5f78 to your computer and use it in GitHub Desktop.
Dummy modules in go
var Util util
type util struct{}
func (_ util) PadLeft(s string, n int) string {
//...
}
// ...
Util.PadLeft("over 9000!", 90001)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment