gotools

package module
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2021 License: MIT Imports: 14 Imported by: 0

README

gotools

Tools for make life easier in Go

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanString

func CleanString(s string, accent, chars bool) string

func GenPasswordALaCon

func GenPasswordALaCon() string

func GetIP

func GetIP(r *http.Request) string

func InIntSlice

func InIntSlice(n int, l []int) bool

func InSlice

func InSlice(n string, l []string) bool

func MakeFloat64

func MakeFloat64(deP interface{}) (float64, error)

func MakeInt

func MakeInt(deP interface{}) (int, error)

func MakeInt32

func MakeInt32(deP interface{}) (int32, error)

func MakeInt64

func MakeInt64(deP interface{}) (int64, error)

func RemoveAccents

func RemoveAccents(s string) string

func RemoveSpecialChars

func RemoveSpecialChars(s string) string

func ReturnRes

func ReturnRes(res ResultS, code int)

func SendHtmlMailLocalhost added in v2.1.3

func SendHtmlMailLocalhost(to string, from string, sub string, msg string) error

func SendTextMailLocalhost added in v2.1.3

func SendTextMailLocalhost(to string, from string, sub string, msg string) error

Types

type ResultS

type ResultS struct {
	Code int         `json:"code"`
	Msg  string      `json:"msg"`
	Data interface{} `json:"data"`
}

Jump to

Keyboard shortcuts

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