branch

package
v6.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package branch provides functions to handle branch configuration.

Index

Constants

View Source
const FlagType = "JSON string"

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

type Flag []map[string]any

func (*Flag) Set

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

func (*Flag) String

func (f *Flag) String() string

func (*Flag) Type

func (f *Flag) Type() string

Jump to

Keyboard shortcuts

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