utils

package module
v0.0.0-...-3f23a24 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2018 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SplitLength

func SplitLength(s string, length int) []string

SplitLength returns a slice of strings, each string is at most length bytes long. Does not break UTF-8 codepoints.

func TruncateString

func TruncateString(s string, length int) string

TruncateString truncates s to a maximum of length bytes without breaking UTF-8 codepoints.

Types

This section is empty.

Jump to

Keyboard shortcuts

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