internal

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package internal contains all build time metadata (version, build time, git commit, etc).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChunkSlice

func ChunkSlice[K interface{}](slice []K, chunkSize int) [][]K

func Contains added in v0.0.5

func Contains[K interface{}](slice []K, value K) bool

func Hash

func Hash(value string) string

func UniqueBy added in v0.0.9

func UniqueBy[K interface{}](slice []K, by func(K) string) []K

Types

type Fields added in v0.0.9

type Fields map[string]interface{}

type Spinner added in v0.0.9

type Spinner struct {
	// contains filtered or unexported fields
}

func StartInfoSpinner added in v0.0.9

func StartInfoSpinner(text string, isTerminal bool) *Spinner

func StartSpinner added in v0.0.9

func StartSpinner(level string, text string, isTerminal bool) *Spinner

func (*Spinner) Stop added in v0.0.9

func (s *Spinner) Stop()

func (*Spinner) Update added in v0.0.9

func (s *Spinner) Update(text string)

func (*Spinner) WithFields added in v0.0.9

func (s *Spinner) WithFields(fields map[string]interface{}) *Spinner

type Version

type Version struct {
	Version   string
	Commit    string
	GoVersion string
	Compiler  string
	Platform  string

	SbomVersion string
}

Version information from build time args and environment

func FromBuild

func FromBuild() Version

FromBuild provides all version details

Jump to

Keyboard shortcuts

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