unembed

package module
v0.0.0-...-e33fac3 Latest Latest
Warning

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

Go to latest
Published: May 21, 2022 License: MIT Imports: 6 Imported by: 1

README

unembed

Take a filesystem from go:embed and unpack it to a directory someplace.

package main

import (
	"embed"
)

//go:embed README.md LICENSE unembed_test.go unembed.go
var eft embed.FS

func main() {
	err := Unembed(eft, "test2")
	if err != nil {
		t.Fatal(err)
	}
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Unembed

func Unembed(efs embed.FS, dir string) error

Unembed unpacks an embed.FS to a directory recursively.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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