utils

package
v0.0.0-...-056f41a Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddQuery

func AddQuery(URL *url.URL, params map[string]string) *url.URL

func BindFlags

func BindFlags(cmd *cobra.Command)

BindFlags binds the viper config values to the flags

func CleanText

func CleanText(text string) string

func FormatNum

func FormatNum(text string) (int, error)

func FormatScore

func FormatScore(text string) (float64, error)

func IsCVECode

func IsCVECode(str string) bool

func Mkdir

func Mkdir(dir string) error
func ParseLink(URL url.URL, text string) (string, string)

func ReadFile

func ReadFile(filepath string, data any) error

func TrimNull

func TrimNull(text string) string

func URL

func URL(scheme, host, path string) *url.URL

func WriteFile

func WriteFile(filepath string, data any) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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