Created
December 30, 2017 22:08
-
-
Save cameron/7547d54ef2feaa1da6ea627970069730 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package tagalog | |
import "fmt" | |
func Tagalog(tags ...interface{}) func(...interface{}) { | |
return func (args ...interface{}) { | |
fmt.Println(append(args, tags...)...) | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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