Skip to content

A short, simple script to generate a new Go project with an integrated Docker container. Includes a Dockerfile, and a Hello-World Go program, as well as a prefilled GitHub workflow.

Notifications You must be signed in to change notification settings

44million/DockerGoTemplateScript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 

Repository files navigation

DGTS:

A short, simple script to generate a new Go project with a Docker container, and a GitHub workflow built in.

To quickly get started, copy and paste the following commands (without the $) into your terminal:

$ git clone https://github.com/QRX53/DockerGoTemplateScript/

$ cd DockerGoTemplateScript

$ chmod u+x CreateGoProject.sh

$ ./CreateGoProject.sh

The project will be generated with the name given during the creation process. It will put all of the Go source files into a /src folder. It will also generate a GitHub workflow which will attempt to build the project every time you commit the project to a GitHub repository, useful for seeing if your build is passing. The following build structure is an example of what will be generated:

project-name/
├── Dockerfile
├── go.mod
├── .github/
│   └── workflows/
│       └── main.yml
└── src/
    └── main.go

Once generated, the project is ready to be put on GitHub, and is easily distributable thanks to Docker. See this repository for a live example.

About

A short, simple script to generate a new Go project with an integrated Docker container. Includes a Dockerfile, and a Hello-World Go program, as well as a prefilled GitHub workflow.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages