stringutil

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package stringutil string utils

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CutByMaxLen

func CutByMaxLen(src string, iMaxLen int) string

CutByMaxLen 按最大长度截取字符串,如超过最大长度返回原字符串,如未超过则截断尾部

@return

func CutLastByMaxLen

func CutLastByMaxLen(src string, iMaxLen int) string

CutLastByMaxLen 按最大长度从后向前截取字符串,如超过最大长度返回原字符串,如未超过则截断首部

@return

Types

This section is empty.

Jump to

Keyboard shortcuts

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