goembed

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package goembed generates a Go source to embed GX source file.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Write

func Write(w io.Writer, info PackageInfo) error

Write the source to the writer.

Types

type PackageInfo

type PackageInfo interface {
	// GoPackageName is the name of the Go package packaging GX files together.
	GoPackageName() string

	// GXPackageName is the name of the GX package.
	GXPackageName() string

	// GXPackagePath is the path to the GX package.
	GXPackagePath() string

	// GXPackage is the path to the GX package.
	GXPackage() string

	// Embed is the list of GX files constituting the GX package.
	Embed() []string

	// Dependencies is the list of dependencies in the package.
	Dependencies() []string

	// TargetFile returns the file in which the data needs to be written.
	TargetFile() string
}

PackageInfo defines all the values to fill in the template.

Jump to

Keyboard shortcuts

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