Skip to content

Instantly share code, notes, and snippets.

@bykof
Last active July 1, 2020 11:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bykof/7753073cf3c8e409205e49adae0feea0 to your computer and use it in GitHub Desktop.
Save bykof/7753073cf3c8e409205e49adae0feea0 to your computer and use it in GitHub Desktop.
package dingo_example
import (
"example.com/dingo_example/infrastructure"
"example.com/dingo_example/interfaces"
)
const ProductApi = "https://my-product-api.com"
func main() {
productAPI := infrastructure.ConcreteProductAPI{ProductApi}
appController := interfaces.AppController{}
appController.New(&productAPI)
appController.PrintProducts()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment