Skip to content

Instantly share code, notes, and snippets.

@sahajre
Created August 1, 2019 07:55
Show Gist options
  • Save sahajre/3cb128e82b6d02a662508c47ec2df3ba to your computer and use it in GitHub Desktop.
Save sahajre/3cb128e82b6d02a662508c47ec2df3ba to your computer and use it in GitHub Desktop.
package main
import "fmt"
func printStr(s string) {
fmt.Print(s)
}
func printHelloWorld() {
defer printStr("界")
defer printStr("世")
defer printStr(", ")
printStr("Hello")
}
func main() {
printHelloWorld()
printStr("\n")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment