...

Package mapfs

import "oss.terrastruct.com/util-go/mapfs"
Overview
Index

Overview ▾

Package mapfs takes in a description of a filesystem as a map[string]string and writes it to a temp directory so that it may be used as an io/fs.FS.

type FS

type FS struct {
    fs.FS
    // contains filtered or unexported fields
}

func New

func New(m map[string]string) (*FS, error)

func (*FS) Close

func (fs *FS) Close() error