close
Skip to content

Amirus/mix

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mix

Go http.Handler that mixes many files into one request.

Usage

If you have a directory containing many JavaScript files:

files/
  js/
    one.js
    two.js
    three.js
  lib/
    four.js

You can use mix.Handler to specify filepath patterns to serve them all in a single request.

http.Handle("/mix/all.js", mix.Handler("./files/js/*.js", "./files/lib/*.js"))
  • The Content-Type will be taken from the request path.

About

Go http.Handler that mixes many files into one request.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Go 99.7%
  • JavaScript 0.3%