rpack

package
v0.0.0-...-e2ec35b Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2025 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(pack map[string]*RPACK, rpath string, uncompress bool) (content []byte, ctype string, modified int64, err error)

func Pack

func Pack(root, out, pkgname, funcname, defdoc, exclude string, main bool)

func Serve

func Serve(pack map[string]*RPACK, ttl time.Duration) http.Handler

Types

type RPACK

type RPACK struct {
	Default  bool
	Modified int64
	Mime     string
	Content  string
	// contains filtered or unexported fields
}

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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