brutil

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 21, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Send

func Send(w http.ResponseWriter, statusCode int, data []byte) error

func SendJSON

func SendJSON(w http.ResponseWriter, statusCode int, v any) error

Types

type BodyParser

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

func NewBodyParser

func NewBodyParser(r io.Reader) (*BodyParser, error)

func (*BodyParser) ParseJSON

func (bp *BodyParser) ParseJSON(v any) error

Jump to

Keyboard shortcuts

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