package resolver
import "github.com/gobuffalo/packr/v2/file/resolver"
Index ¶
- Variables
- func HexGzipString(s string) (string, error)
- func Key(s string) string
- func OsPath(s string) string
- func ResolvePathInBase(base, path string) (string, error)
- func String(r Resolver) string
- func UnHexGzipString(packed string) (string, error)
- type Disk
- func (d *Disk) FileMap() map[string]file.File
- func (d *Disk) Resolve(box string, name string) (file.File, error)
- func (d Disk) String() string
- type HexGzip
- func NewHexGzip(files map[string]string) (*HexGzip, error)
- func (hg *HexGzip) FileMap() map[string]file.File
- func (hg *HexGzip) Resolve(box string, name string) (file.File, error)
- func (hg HexGzip) String() string
- type InMemory
- func NewInMemory(files map[string]file.File) *InMemory
- func (d *InMemory) FileMap() map[string]file.File
- func (d *InMemory) Pack(name string, f file.File) error
- func (d *InMemory) Resolve(box string, name string) (file.File, error)
- func (d InMemory) String() string
- type Packable
- type Resolver
Variables ¶
var DefaultResolver = defaultResolver()
Functions ¶
func HexGzipString ¶
func Key ¶
func OsPath ¶
func ResolvePathInBase ¶
ResolvePathInBase returns a path that is guaranteed to be inside of the base directory or an error
func String ¶
func UnHexGzipString ¶
Types ¶
type Disk ¶
type Disk struct { Root string }
func (*Disk) FileMap ¶
func (*Disk) Resolve ¶
func (Disk) String ¶
type HexGzip ¶
type HexGzip struct {
// contains filtered or unexported fields
}
func NewHexGzip ¶
func (*HexGzip) FileMap ¶
func (*HexGzip) Resolve ¶
func (HexGzip) String ¶
type InMemory ¶
func NewInMemory ¶
func (*InMemory) FileMap ¶
func (*InMemory) Pack ¶
func (*InMemory) Resolve ¶
func (InMemory) String ¶
type Packable ¶
type Resolver ¶
Source Files ¶
disk.go hex_gzip.go ident.go in_memory.go packable.go resolver.go
Directories ¶
Path | Synopsis |
---|---|
file/resolver/encoding | |
file/resolver/encoding/hex | Package hex implements hexadecimal encoding and decoding. |
- Version
- v2.8.3 (latest)
- Published
- Nov 23, 2021
- Platform
- linux/amd64
- Imports
- 16 packages
- Last checked
- 10 hours ago –
Tools for package owners.