Documentation ¶
Index ¶
- Constants
- func CheckCertWithDomain(cert *x509.Certificate, domain string) bool
- func CheckCertWithTime(cert *x509.Certificate, gracePeriod time.Duration) bool
- func CountSpaceInStringPrefix(str string) int
- func EncodePrivateKeyToPEM(privateKey crypto.PrivateKey) ([]byte, error)
- func FormatTextToWidth(text string, width int) string
- func FormatTextToWidthAndPrefix(text string, prefixWidth int, overallWidth int) string
- func GetArgs0() string
- func GetArgs0Name() string
- func InvalidPhone(phone string) bool
- func IsGoodQueryKey(key string) bool
- func IsValidDomain(domain string) bool
- func IsValidEmail(email string) bool
- func IsValidHTTPHeaderKey(key string) bool
- func IsValidURLPath(path string) bool
- func Rand() *rand.Rand
- func RandStr(length int) string
- func ReadCertificate(data []byte) (*x509.Certificate, error)
- func ReadPrivateKey(data []byte) (crypto.PrivateKey, error)
- func SayGoodByef(format string, args ...interface{})
- func SayHellof(format string, args ...interface{})
- func StringToOnlyPrint(str string) string
Constants ¶
View Source
const BASE_CHAR = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
View Source
const NormalConsoleWidth = 80
Variables ¶
This section is empty.
Functions ¶
func CheckCertWithDomain ¶
func CheckCertWithDomain(cert *x509.Certificate, domain string) bool
func CheckCertWithTime ¶
func CheckCertWithTime(cert *x509.Certificate, gracePeriod time.Duration) bool
func EncodePrivateKeyToPEM ¶
func EncodePrivateKeyToPEM(privateKey crypto.PrivateKey) ([]byte, error)
func FormatTextToWidth ¶
func GetArgs0Name ¶
func GetArgs0Name() string
func InvalidPhone ¶
func IsGoodQueryKey ¶
func IsValidDomain ¶
func IsValidEmail ¶
func IsValidHTTPHeaderKey ¶
func IsValidURLPath ¶
func ReadCertificate ¶
func ReadCertificate(data []byte) (*x509.Certificate, error)
func ReadPrivateKey ¶
func ReadPrivateKey(data []byte) (crypto.PrivateKey, error)
func SayGoodByef ¶
func SayGoodByef(format string, args ...interface{})
func StringToOnlyPrint ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.