Compiler
compiler/incjs
github.com/gopherjs/gopherjs/compiler/incjs
import "github.com/gopherjs/gopherjs/compiler/incjs"
Constants
Ext is the file extension for .inc.js files.
Source: compiler/incjs/file.go:15
const Ext = ".inc.js"Functions
func FromDir(bctx *build.Context, dir string) ([]File, error)
Source: compiler/incjs/file.go:26
FromDir finds and loads any *.inc.js packages in the build context directory.
func FromFilename(filename string) (*File, error)
Types
type File
Source: compiler/incjs/file.go:18
File represents a *.inc.js file metadata and content.
type File struct {
Path string // Full file path for the build context the file came from.
ModTime time.Time
Content []byte
}Fields
Path stringFull file path for the build context the file came from.
ModTime time.TimeContent []byte
