staticbin: Index | Files

package staticbin

import ""

Based on


Package Files


func Static Uses

func Static(asset func(string) ([]byte, error), options ...Options) gin.HandlerFunc

Static returns a middleware handler that serves static files in the given directory.

type Options Uses

type Options struct {
    // SkipLogging will disable [Static] log messages when a static file is served.
    SkipLogging bool
    // IndexFile defines which file to serve as index if it exists.
    IndexFile string
    // Path prefix
    Dir string

Package staticbin imports 7 packages (graph) and is imported by 7 packages. Updated 2016-08-03. Refresh now. Tools for package owners.