Documentation ¶
Overview ¶
字符串处理方法
Index ¶
Constants ¶
View Source
const ( PAD_LEFT = 1 PAD_RIGHT = 2 )
Variables ¶
This section is empty.
Functions ¶
func Pad ¶
字符串填充到指定长度
input string 原字符串 padLength int 规定补齐后的字符串位数 padString string 自定义填充字符串 padType string 填充类型:PAD_LEFT(向左填充,自动补齐位数), 默认右侧
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.