Skip to content

shipwright-io/sample-go

Folders and files

NameName
Last commit message
Last commit date
Jul 29, 2024
Aug 11, 2022
Nov 25, 2024
Aug 11, 2022
Aug 11, 2022
Aug 11, 2022
Sep 1, 2021
Mar 2, 2021
Aug 10, 2023
Oct 19, 2021

sample-go

A collection of Go based sample code.

Overview

This repository host minimal assets develop for the Golang runtime. These samples are used in Shipwright/Build for testing purposes.

Structure

This repository consists of multiple directories, each directory is intended to work with a particular set of tools that are currently supported in Shipwright/Build.

/docker-build

Assets with a Dockerfile, which indicates how to compile the specified go file. This asset is intended to work with tools like Kaniko and Buildah.

/source-build

Assets with pure source code, without any knowledge about Docker. This asset is intended to work with Buildpacks, like the Paketo and Heroku implementation.

/source-build-with-package

Assets with main.go in another target (/main-package) rather than in source root. This asset is intended to work with Buildpacks, like the Paketo and Heroku implementation when we have BP_GO_TARGETS environment variable.