package
Version:
v0.3.0
Opens a new window with list of versions in this module.
Published: Apr 2, 2026
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
TakeHead 按 rune(字符)取字符串前 n 个字符,避免截断 UTF-8 多字节字符
ellipsis 指定省略号内容,如 "..."、"…",为空时不添加省略号
TakeTail 按 rune(字符)取字符串后 n 个字符,避免截断 UTF-8 多字节字符
ellipsis 指定省略号内容,如 "..."、"…",为空时不添加省略号
Source Files
¶
Click to show internal directories.
Click to hide internal directories.