Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/gohxs/webu

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/gohxs/webu

  • v0.0.0-20180716205419-fd9b81d41b8e
  • Source
  • Go
  • Socket score

Version published
Created
Source

My web utils pkg for golang

Not a web framework but a set of helpers related for golang http

Handlers, Chainer

Handlers:
  • Log handler
  • Method handler - handlerFunc that warps POST,GET
  • Special - a experimental handlerFunc to reflect methods
  • Static handler - catchAll serves files, but if file does not exists execute, or return a default file

LogHandler:

func main () {
	mux := http.NewMuxHelper()

	mux.HandleFunc("/",webu.LogHandler("logname", func( w http.ResponseWriter, r *http.Request ){

  }))

	http.ListenAndServer(":8080",mux)
}

TODO:
  • Add tests..
  • review and explain each handler/chain in documentation

FAQs

Package last updated on 16 Jul 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc