Skip to content

Instantly share code, notes, and snippets.

@caseylmanus
Created May 21, 2020 04:00
Show Gist options
  • Save caseylmanus/bec2cea25bda834c1f224a5694b66c8a to your computer and use it in GitHub Desktop.
Save caseylmanus/bec2cea25bda834c1f224a5694b66c8a to your computer and use it in GitHub Desktop.
package main
import "fmt"
func main() {
do("hello world", print)
}
func do(s string, printer func(s string)){
printer(s)
}
func print(s string) {
fmt.Println(s)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment