goClacks

module
v0.0.0-...-aa52868 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 25, 2017 License: MIT

README

Go Clacks Middleware

Middleware to support the GNU Clacks in various Go web frameworks.

Mostly an educational exercise to try to write a quick middleware for multiple go frameworks

Usage

package main

import (
	"net/http"

	"github.com/labstack/echo"
	"github.com/jonathanmh/goClacks/echo"
)

func main() {
	e := echo.New()
	e.Use(goClacks.Terrify)
	e.GET("/", func(c echo.Context) error {
		return c.String(http.StatusOK, "Hello, World!")
	})
	e.Logger.Fatal(e.Start(":1323"))
}

Currently Contains

Educational Findings

They're all pretty similar, but at least now there will be more Clacks throughout the net.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL