github.com/packtpublishing/learning-functional-programming-in-go@v0.0.0-20230130084745-8b849f6d58c4/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