Skip to content

Instantly share code, notes, and snippets.

@cameron
Created December 30, 2017 22:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cameron/7547d54ef2feaa1da6ea627970069730 to your computer and use it in GitHub Desktop.
Save cameron/7547d54ef2feaa1da6ea627970069730 to your computer and use it in GitHub Desktop.
package tagalog
import "fmt"
func Tagalog(tags ...interface{}) func(...interface{}) {
return func (args ...interface{}) {
fmt.Println(append(args, tags...)...)
}
}
package tagalog
func ExampleTagalog() {
log := Tagalog("LIKE", "THEM", "APPLES")
log("how do you")
log("i really do")
// Output:
// how do you LIKE THEM APPLES
// i really do LIKE THEM APPLES
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment