flags

package
v0.0.25 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CSIntFlagValue

type CSIntFlagValue []int

CSIntFlagValue holds a slice of integers parsed from a CSV string.

func (*CSIntFlagValue) Set

func (csi *CSIntFlagValue) Set(value string) error

Set parses a CSV string into integers and stores them.

func (*CSIntFlagValue) String

func (csi *CSIntFlagValue) String() string

String returns the CSV representation of the integers.

type FileFlagValue

type FileFlagValue string

FileFlagValue holds the content of the file provided as a flag.

func (*FileFlagValue) Read

func (ffv *FileFlagValue) Read() []byte

Read opens the file and returns its content

func (*FileFlagValue) Set

func (ffv *FileFlagValue) Set(value string) error

Set opens the file, reads its content, and stores it in the type.

func (*FileFlagValue) String

func (ffv *FileFlagValue) String() string

String is the content of the file.

Jump to

Keyboard shortcuts

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