An open API service indexing awesome lists of open source software.

https://github.com/honmaple/go-webassets


https://github.com/honmaple/go-webassets

Last synced: about 1 year ago
JSON representation

Awesome Lists containing this project

README

          

* go-webassets
#+begin_src go
package main

import (
"fmt"
"io/ioutil"

webassets "github.com/honmaple/go-webassets"
)

func main() {
files := []string{"scss/main.scss"}
filters := []string{"libscss", "cssmin"}

assets := webassets.New()
r, err := assets.Run(files, filters)
if err != nil {
fmt.Println(err)
return
}
b, _ := ioutil.ReadAll(r)
fmt.Println(string(b))
}
#+end_src