util

package
v0.0.0-...-426ce78 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2020 License: MIT Imports: 4 Imported by: 2

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

func ReadJSONFile(dataset string) []byte

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.

Jump to

Keyboard shortcuts

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