common

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrFeedNotFound is returned when a feed is not found in the DB.
	ErrFeedNotFound = errors.New("feed not found")
)

Functions

func GetNormalizedBodyFromRequest

func GetNormalizedBodyFromRequest(req *http.Request) (io.Reader, error)

GetNormalizedBodyFromRequest get body reader from HTTP request using UTF-8

func GetNormalizedBodyFromResponse

func GetNormalizedBodyFromResponse(res *http.Response) (io.Reader, error)

GetNormalizedBodyFromResponse get body reader from HTTP response using UTF-8

func Hash

func Hash(values ...string) string

Hash create a hash of a list of values

func IsEmptyString

func IsEmptyString(s *string) bool

IsEmptyString test if a string pointer is nil or empty

Types

This section is empty.

Jump to

Keyboard shortcuts

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