Skip to content

Instantly share code, notes, and snippets.

@ykyuen
Last active April 18, 2019 08:49
Show Gist options
  • Save ykyuen/2bfe4d4909a872082b2eb97e2979f793 to your computer and use it in GitHub Desktop.
Save ykyuen/2bfe4d4909a872082b2eb97e2979f793 to your computer and use it in GitHub Desktop.
handling-http-request-in-go-echo-framework-1-06
handling-http-request-in-go-echo-example-1/
├── api/ # folder of api endpoints
│ ├── get_full_name.go # api for get full name
├── handler/ # folder of request handlers
│ ├── home_handler.go # handler for home page
│ └── about_handler.go # handler for about page
├── model/ # folder of custom struct types
│ ├── example_request.go # struct type of get_full_name request
│ └── example_response.go # hstruct type of get_full_name response
├── vendor/ # dependencies managed by dep
│ ├── github.com/*
│ └── golang.org/*
├── view/ # folder of html templates
│ ├── base.html # base layout template
│ ├── home.html # home page template
│ └── about.html # about page template
├── Gopkg.lock # dep config file
├── Gopkg.toml # dep config file
└── main.go # programme entrypoint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment