Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ProjectVersion = "master"
	ProjectSha     = "edcc353e7c61c4c3775380b37e04ca8ba747d13f"
)

    Versions of the current project.

    Functions

    func Fields

    func Fields() []zapcore.Field

      Fields returns a ready to dump zap.Fields containing all the versions used.

      func JSON

      func JSON() ([]byte, error)

        JSON returns the version as a ready to send json data.

        func Map

        func Map() map[string]interface{}

          Map returns the version information as a map.

          func ToString

          func ToString(prefix string) string

            ToString returns the string version of versions

            Types

            This section is empty.

            Source Files