checkers

package
v0.0.0-...-520a03a Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2021 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckPasswordValid

func CheckPasswordValid(releaseType, passwd string) passwordErrorCode

func Tr

func Tr(text string) string

Types

type ErrorCode

type ErrorCode int32
const (
	ErrCodeEmpty ErrorCode = iota + 1
	ErrCodeInvalidChar
	ErrCodeFirstCharInvalid
	ErrCodeExist
	ErrCodeNameExist
	ErrCodeSystemUsed
	ErrCodeLen
)

func (ErrorCode) Error

func (code ErrorCode) Error() *ErrorInfo

type ErrorInfo

type ErrorInfo struct {
	Code  ErrorCode
	Error error
}

func CheckUsernameValid

func CheckUsernameValid(name string) *ErrorInfo

type Username

type Username string

type UsernameList

type UsernameList []string

Jump to

Keyboard shortcuts

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