util

package
v1.9.5 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllReplace

func AllReplace(str, reg, rep string) string

AllReplace 該当文字列を全て置換

func GetWindowWidth

func GetWindowWidth() int

GetWindowWidth ウィンドウの幅を取得

func IsEndLFCode added in v1.3.0

func IsEndLFCode(text string) bool

IsEndLFCode 末尾が改行コードかどうか

func IsSameDate

func IsSameDate(chkTime time.Time) bool

IsSameDate 今日の日付かどうか

func IsThreeDigitsNumber added in v1.5.0

func IsThreeDigitsNumber(str string) bool

IsThreeDigitsNumber 3桁までの数値かどうか

func MatchesRegexp added in v1.4.0

func MatchesRegexp(reg, str string) bool

MatchesRegexp 正規表現が文字列にマッチするか

func TruncateString added in v1.4.0

func TruncateString(str string, width int) string

TruncateString 文字列を指定した表示幅に丸める

Types

This section is empty.

Jump to

Keyboard shortcuts

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