render

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CanonicalVersion added in v0.4.0

func CanonicalVersion(in string) string

Canonical ensures that the version string contains a minor and patch part and discards any additional metadata from the version string.

For example:

v1    => v1.0.0
v1.2  => v1.2.0
v1.2.3+incompatible => v1.2.3
v1.2.3-20200707-123456abc => v1.2.3

func CurrentYear

func CurrentYear() string

func LicenceText

func LicenceText(depInfo dependency.Info) string

func Line

func Line(ch string) string

func Revision added in v0.4.0

func Revision(in string) string

Revision returns the hash from version strings following this format: <version>-<timestamp>-<hash> If the string does not match this pattern an empty string is returned.

For example:

v1.2.3  =>
v1.2.3-20200707-123456abc => 123456abc

func Template

func Template(dependencies *dependency.List, templatePath, outputPath string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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