helper

package
v3.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2023 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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

func TailFile

func TailFile(filename string, until string) (chan string, error)

TailFile read file content until string sequence is met

Types

This section is empty.

Jump to

Keyboard shortcuts

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