utils

package
v0.0.0-...-2dded5c Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApiCall

func ApiCall(method string, url string, jsonReq []byte) ([]byte, error)

func EndOfMonth

func EndOfMonth(date time.Time) time.Time

end of month

func Json

func Json(str string) http.HandlerFunc

application Json

func ParseBody

func ParseBody(r *http.Request, body interface{})

parse body

func ParseTemplate

func ParseTemplate(path string) (*template.Template, error)

parse templete

func PrimeNumbers

func PrimeNumbers(n int) (primes []int)

prime number

func RemoveSpecialCharacters

func RemoveSpecialCharacters(text string) string

remove all the special character and numbers

func RemoveTags

func RemoveTags(html string) string

remove all the html tags

func WordCount

func WordCount(str string) map[string]int

word count

Types

This section is empty.

Jump to

Keyboard shortcuts

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