words

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TakeHead

func TakeHead(s string, n int, ellipsis ...string) string

TakeHead 按 rune(字符)取字符串前 n 个字符,避免截断 UTF-8 多字节字符 ellipsis 指定省略号内容,如 "..."、"…",为空时不添加省略号

func TakeTail added in v0.2.4

func TakeTail(s string, n int, ellipsis ...string) string

TakeTail 按 rune(字符)取字符串后 n 个字符,避免截断 UTF-8 多字节字符 ellipsis 指定省略号内容,如 "..."、"…",为空时不添加省略号

Types

This section is empty.

Jump to

Keyboard shortcuts

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