s4l1h / assetfile

assetfile
0 stars 0 forks source link
golang golang-library golang-package

assetfile

AssetFile for Template System

Code Cover %100 https://gocover.io/github.com/s4l1h/assetfile

Doc https://godoc.org/github.com/s4l1h/assetfile

install

go get -u github.com/s4l1h/assetfile

example

package main

import (
    "fmt"

    "github.com/s4l1h/assetfile"
)

func main() {
    css := assetfile.New()
    css.Add("a.css")
    css.Add("b.css")
    css.Add("a.css")
    css.Add("c.css")
    css.Add("b.css")
    css.Add("foo_%s.css", "module")
    css.Add("foo_%s_%d.css", "module", 1)

    fmt.Println(css.List()) // [a.css b.css c.css foo_module.css foo_module_1.css]
}