utils

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2020 License: MIT Imports: 10 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultSchemePort = map[string]string{
	"http":  "80",
	"https": "443",
	"ftp":   "21",
	"ssh":   "22",
}

DefaultSchemePort TODO

Functions

func AbsInt64

func AbsInt64(n int64) int64

AbsInt64 TODO

func NewProcess

func NewProcess() (*process.Process, error)

NewProcess TODO

func NewRedisClient

func NewRedisClient(conf *viper.Viper) (*redis.Client, error)

NewRedisClient create redis client and connect

func ParseRedisInfo

func ParseRedisInfo(info string, key string) (string, string)

ParseRedisInfo TODO

func Reverse added in v0.0.3

func Reverse(s string) string

Reverse TODO

Types

type ParsedURL

type ParsedURL struct {
	Parsed *url.URL
	Host   string
	Port   string
}

ParsedURL TODO

func NewParsedURL

func NewParsedURL(rawURL string) (parsedURL *ParsedURL, err error)

NewParsedURL TODO

Jump to

Keyboard shortcuts

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