rclone: github.com/ncw/rclone/cmd/serve/httplib/serve/data Index | Files

package data

import "github.com/ncw/rclone/cmd/serve/httplib/serve/data"

Index

Package Files

assets_vfsdata.go data.go

Variables

var Assets = func() http.FileSystem {
    fs := vfsgen۰FS{
        "/": &vfsgen۰DirInfo{
            name:    "/",
            modTime: time.Date(2018, 12, 16, 6, 54, 42, 894445775, time.UTC),
        },
        "/index.html": &vfsgen۰CompressedFileInfo{
            name:             "index.html",
            modTime:          time.Date(2018, 12, 16, 6, 54, 42, 790442328, time.UTC),
            uncompressedSize: 226,

            compressedContent: []byte("" /* 742 byte string literal not displayed */),
        },
    }
    fs["/"].(*vfsgen۰DirInfo).entries = []os.FileInfo{
        fs["/index.html"].(os.FileInfo),
    }

    return fs
}()

Assets statically implements the virtual filesystem provided to vfsgen.

func GetTemplate Uses

func GetTemplate() (tpl *template.Template, err error)

GetTemplate returns the HTML template for serving directories via HTTP

Package data imports 12 packages (graph) and is imported by 2 packages. Updated 2019-06-06. Refresh now. Tools for package owners.