util

package
v0.0.0-...-a8d8f77 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChunkSlice

func ChunkSlice(list []string, chunkSize int) [][]string

func Decode

func Decode(input string) ([]byte, error)

func Decrypt

func Decrypt(input string, secret string) (string, error)

func Encode

func Encode(input []byte) string

func Encrypt

func Encrypt(input string, secret string) (string, error)

func LogError

func LogError(a ...interface{})

func LogInfo

func LogInfo(format string, a ...interface{})

func LogRequest

func LogRequest(r *http.Request)

func LogSuccess

func LogSuccess(format string, a ...interface{})

Types

type RequestError

type RequestError struct {
	StatusCode int
	Err        error
}

func NewRequestError

func NewRequestError(statusCode int, err error) *RequestError

func (*RequestError) Error

func (e *RequestError) Error() string

Jump to

Keyboard shortcuts

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