github.com/l3x/learn-fp-go@v0.0.0-20171228022418-7639825d0b71/2-design-patterns/ch06-onion-arch/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