inertia: github.com/ubclaunchpad/inertia/daemon/inertiad/util Index | Files

package util

import "github.com/ubclaunchpad/inertia/daemon/inertiad/util"

Package util provides miscellaneous utility functions

Index

Package Files

doc.go util.go

func WithMethods Uses

func WithMethods(handler http.HandlerFunc, methods ...string) http.HandlerFunc

WithMethods uses handler with only the declared methods. If no methods are provided, all methods are allowed.

Package util imports 1 packages (graph). Updated 2019-02-28. Refresh now. Tools for package owners.