-5
인터페이스를 함수의 매개 변수로 어떻게 구성합니까? 당신이 "여기에서"아무것도 넣어하려고하면Go에서 인터페이스를 매개 변수로 사용하는 함수 호출
type blahinterface interface {
method1()
method2()
method3()
}
func blah (i blahinterface) {
}
blah(?) < what goes in here
[유효 이동] (http://golang.org/doc/effective_go.html) 및 [이동 둘러보기] (http://tour.golang.org/) – JimB
[ Go Wikipedia article] (http://en.wikipedia.org/wiki/Go_(프로그래밍 _ 언어) #Interface_system) 인터페이스 예를 들어 보았지만 읽을 필요가 있습니다. – twotwotwo