http

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2023 License: MIT Imports: 2 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EncodeError

func EncodeError(w http.ResponseWriter, response error)

EncodeError encodes the error to JSON and writes it to the response writer

func EncodeResponse

func EncodeResponse(w http.ResponseWriter, response interface{})

EncodeResponse encodes the response to JSON and writes it to the response writer

Types

type IdResponse added in v0.0.2

type IdResponse struct {
	ID string `json:"id"`
}

Jump to

Keyboard shortcuts

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