fs

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2022 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Assets *assets

Assets provides access to the assets filesystem.

View Source
var Checks *checks

Checks provides access to the checks filesystem.

View Source
var Lang *lang

Lang provides access to the lang filesystem.

View Source
var Templates *templates

Templates provides access to the templates filesystem.

View Source
var Tools *tools

Tools provides access to the tools filesystem.

Functions

func Anonymous

func Anonymous(data []byte) (*memfd.Memfd, error)

Anonymous create an anonymous file using memfd_create and writes the supplied data into the file.

Returns the Memfd structure and any error encountered.

func Elf

func Elf(buf []byte) bool

func SaveFile

func SaveFile(path string, content []byte)

SaveFile saves a file in the supplied path with the supplied content.

func SaveJSON

func SaveJSON(path string, content []byte)

SaveFile saves a json file in the supplied path with the supplied content.

func SaveMarkdown

func SaveMarkdown(path string, content []byte)

SaveFile saves a markdown in the supplied path with the supplied content.

Types

type Memfd

type Memfd struct {
	Fd   *memfd.Memfd
	Name string
}

func NewMemfdAsset

func NewMemfdAsset(fd *memfd.Memfd, asset string) *Memfd

NewMemfdAsset returns a new Memfd asset struct pointer.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳