bindings

package
v0.0.0-...-f410e7c Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EvalBytes

func EvalBytes(code []byte, source string, req *http.Request) (C.Janet, error)

func EvalFilePath

func EvalFilePath(path string, req *http.Request) (C.Janet, error)

func EvalString

func EvalString(code string) (C.Janet, error)

func PrettyPrint

func PrettyPrint(j C.Janet) string

func RenderTemple

func RenderTemple(code []byte, path string, req *http.Request) (C.Janet, error)

func SetupEmbeds

func SetupEmbeds(e embed.FS)

This is a workaround for how Go'd embed works

func StartJanet

func StartJanet()

func StopJanet

func StopJanet()

func ToString

func ToString(janet C.Janet) string

func Write

func Write(j C.Janet, w http.ResponseWriter) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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