Documentation ¶
Index ¶
- func CopyDir(source, destination string) error
- func DeleteFile(path string) error
- func Difference[T comparable](slice1 []T, slice2 []T) []T
- func GenerateRandomBytes(n int) ([]byte, error)
- func GenerateRandomString(s int) string
- func GenerateUUID() (string, error)
- func GetIpCountry(ip string) string
- func GetPrivateIp() string
- func GracefulShutdown(f func() error) error
- func IsLower(s string) bool
- func IsSameSlice[A []T, B []T, T comparable](x []T, y []T) bool
- func IsUpper(s string) bool
- func OpenBrowser(url string)
- func ParseMultipartForm(r *http.Request, size ...int64) (formData url.Values, formFiles map[string][]*multipart.FileHeader)
- func PathExists(path string) bool
- func PrintMemUsage()
- func RetryEvery(t time.Duration, function func() error, maxRetry ...int)
- func ReverseSlice[S ~[]E, E any](s S)
- func RunEvery(t time.Duration, function any)
- func SendEmail(to_email string, subject string, textToSend string)
- func ShuffleCharacters(text string) string
- func SliceContains[T comparable](elems []T, vs ...T) bool
- func SliceRemove[T comparable](slice *[]T, elemsToRemove ...T)
- func SnakeCaseToTitle(inputUnderScoreStr string) (camelCase string)
- func StringContains(s string, subs ...string) bool
- func ToSlug(s string) (string, error)
- func ToSnakeCase(str string) string
- func UploadFile(received_filename, folder_out string, r *http.Request, ...) (string, []byte, error)
- func UploadFileBytes(fileData []byte, filename string, outPath string, acceptedFormats ...string) (string, error)
- func UploadFiles(received_filenames []string, folder_out string, r *http.Request, ...) ([]string, [][]byte, error)
- func UploadMultipartFile(file multipart.File, filename string, outPath string, ...) (string, error)
- type ContextKey
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Difference ¶ added in v0.7.0
func Difference[T comparable](slice1 []T, slice2 []T) []T
func GetIpCountry ¶
func IsSameSlice ¶
func IsSameSlice[A []T, B []T, T comparable](x []T, y []T) bool
IsSameSlice check if both slice are equal
func OpenBrowser ¶
func OpenBrowser(url string)
func ParseMultipartForm ¶ added in v0.5.0
func ParseMultipartForm(r *http.Request, size ...int64) (formData url.Values, formFiles map[string][]*multipart.FileHeader)
Parse body multipart
func ShuffleCharacters ¶
func SliceContains ¶
func SliceContains[T comparable](elems []T, vs ...T) bool
func SliceRemove ¶ added in v1.0.55
func SliceRemove[T comparable](slice *[]T, elemsToRemove ...T)
func SnakeCaseToTitle ¶ added in v1.0.3
func StringContains ¶
func ToSnakeCase ¶ added in v1.0.3
func UploadFile ¶
func UploadFileBytes ¶ added in v0.5.0
func UploadFileBytes(fileData []byte, filename string, outPath string, acceptedFormats ...string) (string, error)
UPLOAD FILE
func UploadFiles ¶ added in v0.5.0
Types ¶
type ContextKey ¶
type ContextKey string
Directories ¶
Path | Synopsis |
---|---|
Package acme provides an implementation of the Automatic Certificate Management Environment (ACME) spec, most famously used by Let's Encrypt.
|
Package acme provides an implementation of the Automatic Certificate Management Environment (ACME) spec, most famously used by Let's Encrypt. |
autocert
Package autocert provides automatic access to certificates from Let's Encrypt and any other ACME-based CA.
|
Package autocert provides automatic access to certificates from Let's Encrypt and any other ACME-based CA. |
encryption
|
|
Package websocket implements a client and server for the WebSocket protocol as specified in RFC 6455.
|
Package websocket implements a client and server for the WebSocket protocol as specified in RFC 6455. |
Click to show internal directories.
Click to hide internal directories.