branch

package
v5.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package branch provides functions to handle branch configuration.

Index

Constants

View Source
const FlagType = "branchesFlag"

Variables

View Source
var (
	ErrNoBranch = errors.New("no branch configuration")
	ErrNoName   = errors.New("no name in branch configuration")
)

Functions

This section is empty.

Types

type Branch

type Branch struct {
	Name       string
	Prerelease bool
}

func Unmarshall

func Unmarshall(input []map[string]any) ([]Branch, error)

Unmarshall takes a raw Viper configuration and returns a slice of Branch representing a branch configuration.

type Flag added in v5.1.1

type Flag []map[string]any

func (*Flag) Set added in v5.1.1

func (f *Flag) Set(value string) error

func (*Flag) String added in v5.1.1

func (f *Flag) String() string

func (*Flag) Type added in v5.1.1

func (f *Flag) Type() string

Jump to

Keyboard shortcuts

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