Documentation ¶
Index ¶
- Constants
- func Address(host string, port int) string
- func BannerTitle(name, version string, size int) string
- func BinarySearch(arr []string, target string) int
- func Contains(c []string, v string) bool
- func ContainsInt(c []int, v int) bool
- func DecryptMessage(message string) (string, error)
- func Dijkstra(graph [][]int, start int) []int
- func DivInt(a, b int64) int64
- func DivNum(a, b float64) float64
- func EncryptMessage(message string) (string, error)
- func ExtractMencion(str string) []string
- func FindIndex(arr []string, valor string) int
- func GenId(id string) string
- func GeneratePortNumber() int
- func GetCodeVerify(length int) string
- func InInt(val string, in []string) bool
- func InStr(val string, in []string) bool
- func IsJsonBuild(str string) bool
- func MinDistance(dist []int, visited []bool) int
- func ModuleName() (string, error)
- func NewId() string
- func Now() string
- func OkOrNot(condition bool, ok interface{}, not interface{}) interface{}
- func ParamQuote(str string, args ...any) string
- func Params(str string, args ...any) string
- func PasswordHash(password string) (string, error)
- func PasswordMatch(hashPassword string, password string) bool
- func Ping()
- func Pointer(collection string, id string) string
- func Pong()
- func QuickSort(arr []int) []int
- func Quote(val interface{}) any
- func TimeDifference(dateInt, dateEnd any) time.Duration
- func ValId(id string) string
- func ValidCode(val string) bool
- func ValidEmail(val string) bool
- func ValidId(val string) bool
- func ValidIn(val string, min int, in []string) bool
- func ValidInt(val int, notIn []int) bool
- func ValidName(val string) bool
- func ValidNum(val float64, notIn []float64) bool
- func ValidPhone(val string) bool
- func ValidStr(val string, min int, notIn []string) bool
- func ValidUUID(val string) bool
- type Num
Constants ¶
View Source
const ACTIVE = "0"
View Source
const AFTER_DELETE = "AFTER_DELETE"
View Source
const AFTER_INSERT = "AFTER_INSERT"
View Source
const AFTER_STATE = "AFTER_STATE"
View Source
const AFTER_UPDATE = "AFTER_UPDATE"
View Source
const APPROVAL = "5"
View Source
const ARCHIVED = "1"
View Source
const BEFORE_DELETE = "BEFORE_DELETE"
View Source
const BEFORE_INSERT = "BEFORE_INSERT"
View Source
const BEFORE_STATE = "BEFORE_STATE"
View Source
const BEFORE_UPDATE = "BEFORE_UPDATE"
View Source
const CACHE_TIME = 60 * 60 * 24 * 1
View Source
const CANCELLED = "2"
View Source
const DAY_SECOND = 60 * 60 * 24 * 1
View Source
const DELETE = "DELETE"
View Source
const FOR_DELETE = "-2"
View Source
const FOUND = "Found"
View Source
const (
HASH_COST = 5
)
View Source
const INSERT = "INSERT"
View Source
const IN_PROCESS = "3"
View Source
const NOT_FOUND = "Not found"
View Source
const OF_SYSTEM = "-1"
View Source
const PENDING_APPROVAL = "4"
View Source
const REFUSED = "6"
View Source
const ROWS = 30
View Source
const SELECt = "SELECT"
View Source
const STOP = "Stop"
View Source
const UPDATE = "UPDATE"
View Source
const VALUE_NOT_BOOL = "Value is not bolean"
Variables ¶
This section is empty.
Functions ¶
func BannerTitle ¶
func BinarySearch ¶
func ContainsInt ¶
func DecryptMessage ¶
func EncryptMessage ¶
func ExtractMencion ¶
func GeneratePortNumber ¶
func GeneratePortNumber() int
func GetCodeVerify ¶
func IsJsonBuild ¶
func MinDistance ¶
func ModuleName ¶
func ParamQuote ¶
func PasswordHash ¶
func PasswordMatch ¶
func TimeDifference ¶
func ValidEmail ¶
func ValidPhone ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.