github.com/acornpublishing/functional-programming-go@v0.0.0-20220401005601-c3bd3786d5a1/Chapter06/04_onion/src/interfaces/impl.go_STOP (about) 1 package interfaces 2 3 import ( 4 "domain" 5 ) 6 7 // Called by local-file-exists Api 8 func GetFile(fileName string) (localFile *domain.File, err error) { 9 // could return from a cache 10 return domain.NewFile(fileName), nil 11 } 12