Discover Packages
github.com/frozzare/go
strings2
package
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: Oct 29, 2018
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Chars returns all characters a string slice.
Chop chops the string with the given length and returns a string slice.
Insert inserts a new string at a given index and returns the string.
Lines returns the lines in the string as a string slice.
Reverse returns the string reversed.
Slug generates a slug from a input string.
SwapCase returns a string where uppercase is swapped with
lowercase and lowercase to uppercase and vice versa.
Truncate will truncate the string and add dots or given character at the end.
The additional values are length of the dots or given character and the character
that should be used.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.