Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Matching API https://www.algolia.com/doc/api-reference/api-methods/save-synonym/#method-param-type Regular string = "synonym" OneWay string = "oneWaySynonym" AltCorrection1 string = "altCorrection1" AltCorrection2 string = "altCorrection2" Placeholder string = "placeholder" )
Variables ¶
This section is empty.
Functions ¶
func FlagsToSynonym ¶
func FlagsToSynonym(flags SynonymFlags) (search.Synonym, error)
Types ¶
type SynonymFlags ¶
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
Click to show internal directories.
Click to hide internal directories.