utils

package
v0.0.0-...-53aac8d Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Blue

func Blue(s string) string

func GetPwdPath

func GetPwdPath() string

func Green

func Green(s string) string

func IsDev

func IsDev() bool

func IsProd

func IsProd() bool

func OpenWithBrowser

func OpenWithBrowser(url string) error

OpenWithBrowser opens url with default browser. 参考:https://github.com/toqueteos/webbrowser/blob/main/webbrowser.go

func Rainbow

func Rainbow(s string) string

func Red

func Red(s string) string

func Rpadx

func Rpadx(s string, padding int) string

rpadx adds padding to the right of a string.

func StringRegexpReplace

func StringRegexpReplace(str string, pattern string, replace string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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