editor

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2024 License: Apache-2.0, Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPathTree

func GetPathTree(path string) []string

func InitializeEvaluationRoute

func InitializeEvaluationRoute(router *mux.HyperMux)

func InitializeStaticRoute

func InitializeStaticRoute(router *mux.HyperMux)

func IsDir

func IsDir(path string) bool

func Start

func Start()

func StaticHandler

func StaticHandler(path string) func(writer http.ResponseWriter, request *http.Request)

Types

type EvaluateRequest

type EvaluateRequest struct {
	GrlText string      `json:"grlText"`
	Input   []*JSONData `json:"jsonInput"`
}

type FileData

type FileData struct {
	Bytes       []byte
	ContentType string
}

func GetFile

func GetFile(path string) (*FileData, error)

type JSONData

type JSONData struct {
	Name     string
	JSONData string `json:"jsonText"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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