core

package
v0.0.0-...-2d75744 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
View Source
const VERSION = "v0.0.1\n"

Variables

This section is empty.

Functions

func Blue

func Blue(msg string) string

func Decoder

func Decoder(objBuffer []byte) (interface{}, error)

func Encoder

func Encoder(obj interface{}) (bytes.Buffer, error)

func FromJSON

func FromJSON(objJSON []byte) (interface{}, error)

func Green

func Green(msg string) string

func Red

func Red(msg string) string

func ShouldBeStruct

func ShouldBeStruct(d reflect.Type) error

func ToJson

func ToJson(obj interface{}) ([]byte, error)

func Yellow

func Yellow(msg string) string

Types

type Route

type Route struct {
	URI            string
	Method         string
	Function       func(http.ResponseWriter, *http.Request)
	Authentication bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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