This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| locals { | |
| app_env = { | |
| ENV1 = "ENV1" | |
| ENV2 = "ENV2" | |
| ENV3 = "ENV3" | |
| } | |
| common_name = "${var.app_name}-${var.environment}" | |
| } | |
| resource "aws_elastic_beanstalk_application" "app" { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {{define "main"}} | |
| <!DOCTYPE html> | |
| <html> | |
| <body> | |
| Hello {{.}} | |
| </body> | |
| </html> | |
| {{end}} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "io" | |
| "os" | |
| "path" | |
| "text/template" | |
| rice "github.com/GeertJohan/go.rice" | |
| "github.com/labstack/echo" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "log" | |
| "net/http" | |
| "github.com/labstack/echo" | |
| "github.com/labstack/echo/middleware" | |
| "github.com/pkg/errors" | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "fmt" | |
| "log" | |
| "reflect" | |
| "strings" | |
| ) | |
| type model struct { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "fmt" | |
| "strings" | |
| ) | |
| type model struct { | |
| ID int | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package asdf | |
| import ( | |
| "reflect" | |
| "github.com/gin-gonic/gin" | |
| "github.com/pkg/errors" | |
| "github.com/seaspancode/cds/responses" | |
| ) | |
| type DataBaseInterface interface{} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package api | |
| import "github.com/labstack/echo" | |
| func Routes(e *echo.Group) { | |
| // define your routes and functions here | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| func main() { | |
| RunServer() | |
| } | |
| func RunServer() { | |
| echo := NewApp() | |
| echo.Start(":3001") | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "net/http" | |
| "net/url" | |
| "path" | |
| "github.com/labstack/echo" | |
| ) |