shared

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2025 License: MIT Imports: 2 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	Regular string = string(search.SYNONYM_TYPE_SYNONYM)
	// oneWaySynonym
	OneWay string = string(search.SYNONYM_TYPE_ONE_WAY_SYNONYM)
	// onewaysynonym
	AltOneWay string = string(search.SYNONYM_TYPE_ONEWAYSYNONYM)
	// altCorrection1
	AltCorrection1 string = string(search.SYNONYM_TYPE_ALT_CORRECTION1)
	// altcorrection1
	AltAltCorrection1 string = string(search.SYNONYM_TYPE_ALTCORRECTION1)
	// altCorrection2
	AltCorrection2 string = string(search.SYNONYM_TYPE_ALT_CORRECTION2)
	// altcorrection2
	AltAltCorrection2 string = string(search.SYNONYM_TYPE_ALTCORRECTION2)
	Placeholder       string = string(search.SYNONYM_TYPE_PLACEHOLDER)
)

Variables

This section is empty.

Functions

func FlagsToSynonym

func FlagsToSynonym(flags SynonymFlags) (*search.SynonymHit, error)

Types

type SynonymFlags

type SynonymFlags struct {
	SynonymID           string
	SynonymInput        string
	SynonymWord         string
	SynonymPlaceholder  string
	SynonymType         string
	Synonyms            []string
	SynonymCorrections  []string
	SynonymReplacements []string
}

type SynonymType

type SynonymType string

Defining new type that implements pflag.Value interface with String, Set and Type https://stackoverflow.com/questions/50824554/permitted-flag-values-for-cobra

func (*SynonymType) Set

func (e *SynonymType) Set(v string) error

func (*SynonymType) String

func (e *SynonymType) String() string

func (*SynonymType) Type

func (e *SynonymType) Type() string

Jump to

Keyboard shortcuts

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