Documentation
¶
Index ¶
Constants ¶
View Source
const (
// MONSTER is a constant with value Monster for global use to avoid naked strings
MONSTER = "monster"
)
Variables ¶
View Source
var ( DIRNAME = "/root/go/src/github.com/mikeStr8s/simple_weapons_api" // RELATED is a mapping of relational data to it's base lookup RELATED = map[string]string{ "movementspeed": "movement", "savingthrow": "abilityscore", "skillvalue": "skill", "sensevalue": "sense", } )
Functions ¶
func ReadJSONFile ¶
ReadJSONFile reads the contents of a JSON file and returns an array of bytes of file data to be parsed into data object
func SetResponse ¶
func SetResponse(ctx *fasthttp.RequestCtx)
SetResponse takes a context pointer and assignes the response context data for the API
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.