helpers

package
v0.0.0-...-1d0e1de Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AppKey string

AppKey Liman' AppKey

View Source
var DBHost string

DBHost Liman' Database Host

View Source
var DBName string

DBName Liman' Database Name

View Source
var DBPassword string

DBPassword Liman' Database Password

View Source
var DBPort string

DBPort Liman' Database Port

View Source
var DBUsername string

DBUsername Liman' Database Username

View Source
var EnvPath = "/liman/server/.env"

EnvPath Liman' EnvPath

View Source
var Timeout string

Extension Timeout Env

Functions

func Abort

func Abort(message string)

Abort : Abort system and print message

func Contains

func Contains(arr []string, str string) bool

Contains : Check if element in array.

func EncodeMessageUTF16

func EncodeMessageUTF16(message string) string

EncodeMessageUTF16 EncodeMessageUTF16

func ExecuteCommand

func ExecuteCommand(input string) (string, error)

ExecuteCommand : Execute Shell Command

func GetFreePort

func GetFreePort() int

GetFreePort Get free port to listen on.

func IsLetter

func IsLetter(s string) bool

func IsValidUUID

func IsValidUUID(uuid string) bool

IsValidUUID Check if given string is uuid

func MergeStringMaps

func MergeStringMaps(ms ...map[string]string) map[string]string

MergeStringMaps Merge two string maps.

func ReadDataFromLiman

func ReadDataFromLiman()

ReadDataFromLiman Retrieve data from liman

func StringAfter

func StringAfter(value string, a string) string

StringAfter Get String After

func StringBefore

func StringBefore(value string, a string) string

StringBefore Get String Before

func StringBetween

func StringBetween(value string, a string, b string) string

StringBetween Get String Between

func UniqueStrings

func UniqueStrings(arr []string) []string

UniqueStrings make string array unique

Types

This section is empty.

Jump to

Keyboard shortcuts

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