esmeta

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	Inputs  map[string]*Input  `json:"inputs,omitempty"`
	Outputs map[string]*Output `json:"outputs,omitempty"`
}

func Parse

func Parse(metafile string) (*File, error)

func (*File) Dependencies

func (f *File) Dependencies() (deps []string)

type Import

type Import struct {
	Path string `json:"path,omitempty"`
	Kind string `json:"kind,omitempty"`
}

type Input

type Input struct {
	Bytes   int       `json:"bytes,omitempty"`
	Imports []*Import `json:"imports,omitempty"`
}

type Output

type Output struct {
	Bytes      int                     `json:"bytes,omitempty"`
	Inputs     map[string]*OutputInput `json:"inputs,omitempty"`
	Imports    []*Import               `json:"imports,omitempty"`
	Exports    []string                `json:"exports,omitempty"`
	EntryPoint *string                 `json:"entryPoint,omitempty"`
}

type OutputInput

type OutputInput struct {
	BytesInOutput int `json:"bytesInOutput,omitempty"`
}

Jump to

Keyboard shortcuts

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