templates

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DOCKERFILE_TEMPLATE = "Dockerfile.tmpl"
	DOCKERFILE          = "Dockerfile"

	ALPINE_VERSION = "latest"
)
View Source
const (
	GOMOD_TEMPLATE = "go.mod.tmpl"
	GOMOD_FILE     = "go.mod"
)
View Source
const (
	LICENSE_TEMPLATE = "LICENSE.tmpl"
	LICENSE_FILE     = "LICENSE"
)
View Source
const (
	README_TEMPLATE = "README.tmpl"
	README_FILE     = "README.md"
)

Variables

This section is empty.

Functions

func GoVersion

func GoVersion(version string) string

GoVersion gets the version of Go from the runtime in the format <major_version>.<minor_version> (1.19 for example).

Types

type DockerfileInfo

type DockerfileInfo struct {
	GoVersion     string
	AlpineVersion string
}

func NewDockerfileInfo

func NewDockerfileInfo() *DockerfileInfo

type GoModInfo

type GoModInfo struct {
	GoVersion   string
	PackageName string
}

func NewGoModInfo

func NewGoModInfo(packageName string) *GoModInfo

type LicenseInfo

type LicenseInfo struct {
	Version     string
	AuthorName  string
	LicenseFile string
	Year        int
}

func NewLicenceInfo

func NewLicenceInfo(authorName string) *LicenseInfo

type ReadmeInfo

type ReadmeInfo struct {
	AuthorName  string
	Description string
}

func NewReadmeInfo

func NewReadmeInfo(authorName, description string) *ReadmeInfo

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL