GithubHelp home page GithubHelp logo

govfs's Introduction

govfs

Generate a virtual file system by embedding files and directories.

Run govfs -h for help.

NAME

        govfs - generate a virtual file system by embedding files

SYNOPSIS

        govfs [OPTIONS]... [PATTERN::TARGETDIR]...

DESCRIPTION

        Embed files into a Go binary by generating a mini
        virtual file system.

        PATTERN is a shell GLOB file name pattern. The syntax of
        the pattern is the same as in filepath.Match.
        (https://golang.org/pkg/path/filepath/#Match)

        If a PATTERN matches directories each directory
        will be copied recursively.

        TARGETDIR is a virtual absolute slash separated path
        in the generated virtual file system.

        Multiple PATTERN::TARGETDIR pairs can be specified.

        The virtual file system will only be generated if the
        option -o is specified.

        The io.Reader, io.Seeker and io.ReadSeeker interfaces are
        supported by a virtual file.

OPTIONS

  -o string
        path to output file, for example vfs/vfs.go
  -p string
        custom package name (default "vfs")
  -t string
        path to a file in the virtual file system that will be used to generate tests, interpreted only if option -o is specified

How to install

  1. Make sure GOBIN path is set and is included in your PATH.
  2. Run go install

govfs's People

Contributors

szxp avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.