js

package
v0.0.0-...-dbf91d7 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Code generated by rice embed-go; DO NOT EDIT.

Index

Constants

This section is empty.

Variables

View Source
var DefaultOpts = map[string]interface{}{
	"presets":       []interface{}{"es2015"},
	"ast":           false,
	"sourceMaps":    false,
	"babelrc":       false,
	"compact":       false,
	"retainLines":   true,
	"highlightCode": false,
}

Functions

func RunJs

func RunJs(js string, getter func(name string) (interface{}, error)) (interface{}, error)

RunJs 运行一个js表达式, 返回值

Types

type MemberGetter

type MemberGetter interface {
	GetMember(k string) (interface{}, error)
}

type Runner

type Runner struct {
	// contains filtered or unexported fields
}

type SourceMap

type SourceMap struct {
	Version    int
	File       string
	SourceRoot string
	Sources    []string
	Names      []string
	Mappings   string
}

func Transform

func Transform(src, filename string) (code string, srcmap *SourceMap, err error)

Jump to

Keyboard shortcuts

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