Help us shape the future of Go! Take the 2026 Go Developer Survey

strutil

package
v0.8.0 Latest Latest
Warning

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

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

Documentation

Overview

Package strutil 收敛 core 内字符串小工具,消除 executor/service 重复实现。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CSVEscape

func CSVEscape(s string) string

CSVEscape 转义 CSV 单元格。

func Itoa

func Itoa(n int) string

Itoa int → 字符串。

func Itoa64

func Itoa64(n int64) string

Itoa64 int64 → 字符串。

func SanitizeFileToken

func SanitizeFileToken(s string) string

SanitizeFileToken 文件名安全化(防路径穿越)。

func Truncate

func Truncate(s string, n int) string

Truncate 按字节截断并追加省略号。

Types

This section is empty.

Jump to

Keyboard shortcuts

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