bundle

package
v0.0.20 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bundle

type Bundle struct {
	// contains filtered or unexported fields
}

Bundle is a collection of files that can be served as a unit. Used for serving CSS and JS.

func NewBundle

func NewBundle(extension string) *Bundle

NewBundle creates an empty bundle

func (*Bundle) Add

func (b *Bundle) Add(content []byte)

func (*Bundle) GetCombined

func (s *Bundle) GetCombined() string

GetCombined returns the combined content

func (*Bundle) GetVersionedURL

func (s *Bundle) GetVersionedURL() string

func (*Bundle) Serve

func (s *Bundle) Serve(w http.ResponseWriter, r *http.Request)

Serve serves the combined content with proper HTTP headers

Jump to

Keyboard shortcuts

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