flagtag

package module
v0.0.0-...-b0a60ea Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 License: BSD-3-Clause Imports: 2 Imported by: 0

README

flagtag

Latest release Build status Go Report Card Documentation

Package flagtag.

go get github.com/go-pogo/flagtag
import "github.com/go-pogo/flagtag"

Documentation

Additional detailed documentation is available at pkg.go.dev

Created with

License

Copyright © 2022-2024 Roel Schut. All rights reserved.

This project is governed by a BSD-style license that can be found in the LICENSE file.

Documentation

Index

Constants

View Source
const (
	ErrMultipleShortNames errors.Msg = "found multiple short names"
	ErrMultipleLongNames  errors.Msg = "found multiple long names"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Name

type Name struct {
	Long  string
	Short string
}

func ParseTag

func ParseTag(tag string) (Name, error)

ParseTag parses tag to a Name containing at least a long or short name.

type TagError

type TagError struct {
	Tag string
}

func (*TagError) Error

func (e *TagError) Error() string

Jump to

Keyboard shortcuts

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