utils

package
v0.0.0-...-0d658de Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains(s []string, str string) bool

func Inject

func Inject(input interface{}, output interface{}) (err error)

func InjectBytes

func InjectBytes(data []byte, output interface{}) (err error)

func InjectMap

func InjectMap(input any, output interface{}) (err error)

func NewHashPassword

func NewHashPassword(salt string, password string) (hash string)

func NewSalt

func NewSalt() string

func Print

func Print(msg string, data any)

Types

type ClientRequest

type ClientRequest struct {
}

func (*ClientRequest) Get

func (c *ClientRequest) Get(url string) (body any, err error)

criando uma postagem

func (*ClientRequest) Post

func (c *ClientRequest) Post(url string, payload any, user string, password string) (body any, err error)

criando uma postagem

type ReadFile

type ReadFile struct {
	// contains filtered or unexported fields
}

func (*ReadFile) Run

func (r *ReadFile) Run(path string) string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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