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

staticresource

package
v0.67.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const NAME = "StaticResource"

Variables

This section is empty.

Functions

This section is empty.

Types

type StaticResource

type StaticResource struct {
	metadata.MetadataInfo
	XMLName      xml.Name `xml:"StaticResource"`
	Xmlns        *string  `xml:"xmlns,attr"`
	CacheControl struct {
		Text string `xml:",chardata"`
	} `xml:"cacheControl"`
	ContentType struct {
		Text string `xml:",chardata"`
	} `xml:"contentType"`
	Description *struct {
		Text string `xml:",chardata"`
	} `xml:"description"`
}

func Open

func Open(path string) (*StaticResource, error)

func (*StaticResource) Files

func (c *StaticResource) Files(format metadata.Format) (map[string][]byte, error)

func (*StaticResource) SetMetadata

func (c *StaticResource) SetMetadata(m metadata.MetadataInfo)

func (*StaticResource) Type

Jump to

Keyboard shortcuts

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