Documentation
¶
Index ¶
- func RemoveDuplicateStrings(list []string, sorted bool) []string
- func RemoveDuplicateStringsAndTitle(list []string, sorted bool) []string
- type Stringer
- func (s *Stringer) SetComma(c rune) *Stringer
- func (s *Stringer) SetEquals(e rune) *Stringer
- func (s *Stringer) SetMapComma(b bool) *Stringer
- func (s *Stringer) SetSliceComma(b bool) *Stringer
- func (s *Stringer) Write(v ...interface{}) (int, error)
- func (s *Stringer) WriteStrings(v ...string) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RemoveDuplicateStrings ¶
RemoveDuplicateStrings returns a list with no duplicates. Case matters.
func RemoveDuplicateStringsAndTitle ¶
RemoveDuplicateStringsAndTitle converts the names to lowercase and returns a list with no duplicates and the first letter capitalised.
Types ¶
type Stringer ¶
Stringer extends strings.Builder.
func (*Stringer) SetMapComma ¶
SetMapComma enables adding a comma between elements in supplied maps.
func (*Stringer) SetSliceComma ¶
SetSliceComma enables adding a comma between elements in supplied slices.
func (*Stringer) Write ¶
Write writes any number of different types at once. Special notes: Integers - int and int64 are the only approved types, and untyped whole numbers will be parsed as int Floating point numbers - all numbers with a decimal point are interpreted as float64, with the fewest necessary decimal places Maps & slices - commas are not on by default, and maps will have "=" between each key-value pair