github.com/rancher/moq@v0.0.0-20200712062324-13d1f37d2d77/pkg/moq/testpackages/dotimport/service.go (about) 1 // Package dotimport addresses issue 21. 2 package dotimport 3 4 //go:generate moq -out service_moq_test.go -pkg dotimport_test . Service 5 6 // Service is the interface which should be mocked by moq 7 type Service interface { 8 User(ID string) (User, error) 9 } 10 11 // User is just a struct for testing 12 type User struct { 13 Name string 14 }