rest

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

* 一个简单的go框架,复制的是github开源,并非自己写的 20230831 *

Index

Constants

This section is empty.

Variables

View Source
var (
	IndentJSON             string
	Log                    = log.Println
	DontCheckRequestMethod bool
)

Functions

func GetJSON

func GetJSON(addr string, out interface{}) error

func GetJSONStrict

func GetJSONStrict(addr string, out interface{}) error

func HandleGET

func HandleGET(path string, handler interface{}, object ...interface{})

func HandlePOST

func HandlePOST(path string, handler interface{}, object ...interface{})

func RunServer

func RunServer(addr string, stop chan struct{})

Types

This section is empty.

Jump to

Keyboard shortcuts

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