util

package
v0.0.0-...-3c93229 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateSlug

func GenerateSlug(title string) string

GenerateSlug returns the slug version of the title (no date prefix)

func GetIP

func GetIP(r *http.Request) string

GetIP : Parse all headers.

func GetMD5Hash

func GetMD5Hash(text string) string

GetMD5Hash returns the hash of the given string

func GetRequestScheme

func GetRequestScheme(r *http.Request) string

GetRequestScheme returns the request scheme (http:// or https://)

func IsEmail

func IsEmail(email string) bool

IsEmail checks if the given string is a valid email address format

Types

This section is empty.

Jump to

Keyboard shortcuts

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