types

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2023 License: MIT Imports: 3 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Boolean

type Boolean bool

Boolean is a bool, implementing the flag.Value interface, to be used as a flag var.

func (*Boolean) Set

func (b *Boolean) Set(value string) error

func (Boolean) String

func (b Boolean) String() string

type Config added in v0.9.0

type Config struct {
	SuppressLen     Boolean
	SuppressNil     Boolean
	SuppressErr     Boolean
	SuppressCompare Boolean
	SuppressAsync   Boolean
	AllowHaveLen0   Boolean
}

func (*Config) AllTrue added in v0.9.0

func (s *Config) AllTrue() bool

func (*Config) Clone added in v0.9.0

func (s *Config) Clone() Config

func (*Config) UpdateFromComment added in v0.9.0

func (s *Config) UpdateFromComment(commentGroup []*ast.CommentGroup)

func (*Config) UpdateFromFile added in v0.9.0

func (s *Config) UpdateFromFile(cm ast.CommentMap)

Jump to

Keyboard shortcuts

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