config

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	IgnoreAbbrs []string
	Abbrs       []string
}

func DefaultConfig

func DefaultConfig() *Config

func WithOptions

func WithOptions(options ...Option) *Config

func (Config) Violates

func (c Config) Violates(match string) bool

Violates checks if the passed string value exists in the forbidden list of abbreviations If the string exists in the list, and is not lowercase or uppercase, throws false

type Option

type Option func(config *Config)

func WithAbbrs

func WithAbbrs(abbrs string) Option

func WithIgnoreAbbrs

func WithIgnoreAbbrs(abbrs string) Option

Jump to

Keyboard shortcuts

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