Skip to content
A simple Go template using the Gin web framework on Platform.sh.
Go
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.platform Update to latest upstream Jun 24, 2019
.editorconfig
.gitignore Update to latest upstream Jun 24, 2019
.platform.app.yaml Update to latest upstream Jun 24, 2019
.platform.template.yaml
README.md
go.mod
go.sum
server.go

README.md

Gin for Platform.sh

This template builds the Gin framework for Platform.sh. It includes a minimalist application skeleton for demonstration, but you are free to alter it as needed.

Gin is a lightweight web framework written in Go that emphasizes performance.

Services

  • Go 1.12
  • MariaDB 10.2

Customizations

This project relies on Go module support in Go 1.11 and later. You should commit your go.mod and go.sum files to Git, but not the vendor directory.

The following files and additions make the framework work. If using this project as a reference for your own existing project, replicate the changes below to your project.

  • The .platform.app.yaml, .platform/services.yaml, and .platform/routes.yaml files have been added. These provide Platform.sh-specific configuration and are present in all projects on Platform.sh. You may customize them as you see fit.
  • The .platform.template.yaml file contains information needed by Platform.sh's project setup process for templates. It may be safely ignored or removed.
  • An additional Go module, platformsh/config-reader-go, has been added. It provides convenience wrappers for accessing the Platform.sh environment variables.

References

You can’t perform that action at this time.