utils

package
v0.0.0-...-8a25eb9 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2017 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TIMEFORMAT = "2006-01-02 15:04:05"
)

Variables

This section is empty.

Functions

func CSVSet

func CSVSet(set string) []string

func FetchConfBlock

func FetchConfBlock(lines []string, begin, end string) []string

func FetchConfKey

func FetchConfKey(lines []string, target, def string) string

func OTPGenerate

func OTPGenerate(issuer, name string) (secret, text string, err error)

func OTPValidate

func OTPValidate(code, secret string) (bool, error)

func PrimaryIP

func PrimaryIP() string
func QRLink(text string) string

func QRLinkCaoliao

func QRLinkCaoliao(text string) string

func QRLinkGoogle

func QRLinkGoogle(text string) string

func Readline

func Readline(def string) string

func Rmtmp

func Rmtmp(path string)

func SetOp

func SetOp(origin string, op string) string

func StripConf

func StripConf(path string) (lines []string, err error)

func Tmpfile

func Tmpfile(body 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