strutil

package
v1.1.0-alpha.14 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Reverse

func Reverse(s string) string

Reverse 反转字符串 Deprecated

func Snake added in v1.1.1

func Snake(s string) string

Snake snake string, XxYy to xx_yy , XxYY to xx_yy

func ToInt

func ToInt(str string) int

ToInt 字符串转成 int,失败返回0 Deprecated

func ToIntWith

func ToIntWith(str string, defaultValue int) int

ToIntWith 字符串转成 int,失败返回默认值 Deprecated

func ToTime

func ToTime(str string) *time.Time

ToTime 字符串转 time,失败返回 nil Deprecated

func ToTimeWithLayout

func ToTimeWithLayout(str string, layout string) *time.Time

ToTimeWithLayout 按格式化转成成 time,失败返回 nil Deprecated

Types

This section is empty.

Jump to

Keyboard shortcuts

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