摘要: package main import ( "fmt" "reflect" ) type Dark interface { Run(string) string Speak(string) string } type bird struct { Name string } func (b *bird 阅读全文
posted @ 2021-05-25 17:02 Black_Climber 阅读(509) 评论(0) 推荐(0) 编辑
摘要: package main import "fmt" type Student interface { test() error } type Flag struct {} func (f *Flag) test() error { return nil } func main() { var tes 阅读全文
posted @ 2021-05-25 15:08 Black_Climber 阅读(178) 评论(0) 推荐(0) 编辑