test

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	EmbedSh             target.Source
	EmbedJs             target.Source
	EmbedHtml           target.Source
	EmbedJsRollup       target.Source
	EmbedJsRollupDist   target.Source
	EmbedJsRollupBundle target.Source
	EmbedSvelte         target.Source
	EmbedSvelteDist     target.Source
	EmbedSvelteBundle   target.Source
	EmbedBundle         target.Source
	EmbedGo             target.Source
	EmbedGoDist         target.Source
	EmbedGoBundle       target.Source
)
View Source
var (
	EmbedShManifest       = &target.Manifest{Name: "sh", Package: "new.portal.sh", Exec: "main"}
	EmbedJsManifest       = &target.Manifest{Name: "js", Package: "new.portal.js"}
	EmbedBundleManifest   = &target.Manifest{Name: "bundle", Package: "new.portal.bundle"}
	EmbedHtmlManifest     = &target.Manifest{Name: "html", Package: "new.portal.html"}
	EmbedSvelteManifest   = &target.Manifest{Name: "svelte", Package: "new.portal.svelte"}
	EmbedJsRollupManifest = &target.Manifest{Name: "js-rollup", Package: "new.portal.js-rollup"}
	EmbedGoManifest       = &target.Manifest{Name: "go", Package: "test.go", Title: "test go", Exec: "main"}
)
View Source
var (
	EmbedSvelteBuild   = target.Builds(nil)
	EmbedJsRollupBuild = target.Builds{
		"default": target.Build{Cmd: "cmd2", Deps: []string{"dep2"}},
		"linux":   target.Build{Cmd: "cmd3", Deps: []string{"dep2", "dep3"}},
		"windows": target.Build{Cmd: "cmd4", Deps: []string{"dep2", "dep4"}},
	}
	EmbedGoBuild = target.Builds{
		"default": target.Build{Exec: "main", Cmd: "go build -o dist/main"},
		"linux":   target.Build{Exec: "main", Cmd: "go build -o dist/main", Deps: []string{"gcc", "libgtk-3-dev", "libayatana-appindicator3-dev"}},
		"windows": target.Build{Exec: "main.exe", Cmd: "go build -ldflags -H=windowsgui -o dist/main.exe", Env: []string{"CGO_ENABLED=1"}},
	}
)
View Source
var EmbedFS embed.FS
View Source
var EmbedRoot = source.Embed(EmbedFS)

Functions

func Assert

func Assert[T any](value T, err error) T

func Clean

func Clean(path ...string)

func Copy

func Copy(src target.Source, path ...string) target.Source

Types

This section is empty.

Directories

Path Synopsis
data
go
rpc

Jump to

Keyboard shortcuts

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