Documentation
¶
Index ¶
- Constants
- Variables
- func ApplyPrefixIndexHtml(prefix, root string) error
- func CheckBoolValue(val interface{}) bool
- func CheckFloatValue(val interface{}) float64
- func CheckIntValue(val interface{}) int
- func CheckSQLValue(val string) string
- func Colorize(color Color, message string)
- func ConvertPayloadTypeToString(val float64) (string, string)
- func ConvertProtoTypeToString(val float64) string
- func ElementExists(arr []string, elem string) bool
- func ElementRealExists(arr []string, elem string) bool
- func FileExists(filename string) bool
- func GenCodeChallengeS256(s string) string
- func GenerateToken() string
- func GenereateNewUUID() string
- func GetSQLEqualityOperator(isLike bool) string
- func Hash32(s string) uint32
- func IsupToHex(s string) string
- func ItemExists(arr []string, elem string) bool
- func RemoveSqlInjection(val string) string
- func Sanitize(text string) string
- func SanitizeIntArray(valArray []string) []int
- func SanitizeTextArray(valArray []string) []string
- func YesNo(table string) bool
- type CaseInsensitiveReplacer
- type Color
Constants ¶
View Source
const ( ColorBlack Color = "\u001b[30m" ColorRed = "\u001b[31m" ColorGreen = "\u001b[32m" ColorYellow = "\u001b[33m" ColorBlue = "\u001b[34m" ColorReset = "\u001b[0m" )
Variables ¶
View Source
var HomerLogo = `` /* 323-byte string literal not displayed */
Functions ¶
func ApplyPrefixIndexHtml ¶
func ConvertPayloadTypeToString ¶
import convertPayloadTypeToString
func ConvertProtoTypeToString ¶
import convertProtoTypeToString
func ElementRealExists ¶
check if the element exists
func FileExists ¶
fileExists checks if a file exists and is not a directory before we try using it to prevent further errors.
func GenerateToken ¶
func GenerateToken() string
func GenereateNewUUID ¶
func GenereateNewUUID() string
func GetSQLEqualityOperator ¶
func SanitizeIntArray ¶
func SanitizeTextArray ¶
Types ¶
type CaseInsensitiveReplacer ¶
type CaseInsensitiveReplacer struct {
// contains filtered or unexported fields
}
func NewCaseInsensitiveReplacer ¶
func NewCaseInsensitiveReplacer(toReplace, replaceWith string) *CaseInsensitiveReplacer
func (*CaseInsensitiveReplacer) Replace ¶
func (cir *CaseInsensitiveReplacer) Replace(str string) string
Click to show internal directories.
Click to hide internal directories.