truncate

package module
v0.0.0-...-0e3041e Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package truncate provides utilities to truncate strings.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func String

func String(s string, limit int) string

String truncates a string to the given limit in Unicode characters (not just bytes or codepoints).

Types

This section is empty.

Jump to

Keyboard shortcuts

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