Help us shape the future of Go! Take the 2026 Go Developer Survey

resources

package
v1.5.2-0...-995f177 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EmbeddedResources embed.FS

EmbeddedResources contains all resource files embedded at compile time This includes Tomcat configuration files and other framework resources

Functions

func Exists

func Exists(path string) bool

Exists checks if a resource file exists in embedded resources

func ExtractToDir

func ExtractToDir(targetDir string) error

ExtractToDir extracts all embedded resources to the target directory Preserves directory structure relative to files/

func GetResource

func GetResource(path string) ([]byte, error)

GetResource reads a single embedded resource file path is relative to files/ directory (e.g., "tomcat/conf/server.xml")

func ListResources

func ListResources() ([]string, error)

ListResources returns all available resource file paths Paths are relative to files/ directory

Types

This section is empty.

Jump to

Keyboard shortcuts

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