Skip to content

Instantly share code, notes, and snippets.

@mkfsn
Created May 5, 2019 10:34
Show Gist options
  • Save mkfsn/46126e021a46b4b99a13efe250259cc5 to your computer and use it in GitHub Desktop.
Save mkfsn/46126e021a46b4b99a13efe250259cc5 to your computer and use it in GitHub Desktop.
package main
import (
"fmt"
)
type 被質詢者 interface {
回答(問題 string) string
}
type 韓國瑜 struct {}
func (_ *韓國瑜) 回答(問題 string) string {
return "高雄發大財"
}
func main() {
fmt.Println((new(韓國瑜)).回答("自經區是什麼?"))
fmt.Println((new(韓國瑜)).回答("現行自經區具體內容?"))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment