stringsutil

package
v1.97.2 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LimitStringLen

func LimitStringLen(s string, maxLen int) string

LimitStringLen limits the length of s with maxLen.

If len(s) > maxLen, then s is replaced with "s_prefix..s_suffix", so the total length of the returned string doesn't exceed maxLen.

Types

This section is empty.

Jump to

Keyboard shortcuts

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