Documentation
¶
Overview ¶
Package datastring implements functions to manipulate UTF-8 encoded strings
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InsertNewCharNthPosition ¶
InsertNewCharNthPosition inserts a new UTF-8 character after every N-th character and receives the result as a UTF-8 formatted string
Example:
input := "12345678123456781234567812345678"
result := InsertNewCharNthPosition(input, 8, '-')
result will be "12345678-12345678-12345678-12345678"
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.