embed

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cmd

func Cmd() *cli.Cmd

func EmbedJS

func EmbedJS(out io.StringWriter, opts JSEmbedOptions) error

Types

type JSEmbedOptions

type JSEmbedOptions struct {
	// for cli only, not used by the EmbedJS func
	Output string `cli:"o|output,#set path to write embedded content, if empty, write to stdout"`

	Mode  string            `cli:"m|mode,def=uint8array,comp=uint8array,comp=base64,comp=data-url,#set embedding mode"`
	Files map[string]string `cli:"f|file,#add embedded file in format \"[export] {var|const|let} <var-name>=<file-path>\""`
}

Jump to

Keyboard shortcuts

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