config

package
v0.0.0-...-04a7278 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2025 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IncrementUsage

func IncrementUsage(value string) error

func Initialize

func Initialize() error

func SaveOptions

func SaveOptions(options []Option) error

func SavePatches

func SavePatches(patches []Patch) error

func SaveRecords

func SaveRecords[T any](
	records []T,
	tableName string,
	columns []string,
	conflictColumn string,
	updateColumns []string,
) error

Types

type Option

type Option struct {
	Label string
	Value string
	Usage int
}

func GetDefaultOptions

func GetDefaultOptions() []Option

get the default options

func GetOptions

func GetOptions() ([]Option, error)

type Patch

type Patch struct {
	Prefix string
	Major  int
	Minor  int
	Patch  int
	Suffix string
}

func GetDefaultTagPatch

func GetDefaultTagPatch() []Patch

func GetTagPatch

func GetTagPatch() (Patch, error)

Jump to

Keyboard shortcuts

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