Categorygithub.com/go-zoox/zoox
modulepackage
1.15.13
Repository: https://github.com/go-zoox/zoox.git
Documentation: pkg.go.dev

# README

Zoox - A Lightweight Web Framework

PkgGoDev Build Status Go Report Card Coverage Status GitHub issues Release

Installation

To install the package, run:

go get github.com/go-zoox/zoox

Getting Started

package main

import "github.com/go-zoox/zoox"

func main() {
	app := zoox.Default()

	app.Get("/", func(ctx *zoox.Context) {
		ctx.Write([]byte("helloworld"))
	})

	app.Run(":8080")
}

DevTools

# install
go install github.com/go-zoox/zoox/cmd/zoox@latest
# dev
zoox dev
# build
zoox build

## License
GoZoox is released under the [MIT License](./LICENSE).

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

DefaultGroup ...
DefaultMiddleware ...
New is the constructor of zoox.Application.
NotFound returns a HandlerFunc that replies with a 404 not found.
WrapF wraps a http.HandlerFunc to a HandlerFunc.
WrapH wraps a http.Handler to a HandlerFunc.

# Variables

BuiltInEnv is the built-in environment variable.
BuiltInEnv is the built-in environment variable.
BuiltInEnv is the built-in environment variable.
BuiltInEnv is the built-in environment variable.
BuiltInEnv is the built-in environment variable.
BuiltInEnv is the built-in environment variable.
BuiltInEnv is the built-in environment variable.
BuiltInEnv is the built-in environment variable.
BuiltInEnv is the built-in environment variable.
BuiltInEnv is the built-in environment variable.
BuiltInEnv is the built-in environment variable.
BuiltInEnv is the built-in environment variable.
BuiltInEnv is the built-in environment variable.
BuiltInEnv is the built-in environment variable.
BuiltInEnv is the built-in environment variable.
BuiltInEnv is the built-in environment variable.
BuiltInEnv is the built-in environment variable.
BuiltInEnv is the built-in environment variable.
BuiltInEnv is the built-in environment variable.
DefaultGroupsFns ...
DefaultMiddlewares is the default global middleware.
DefaultSecretKey uses for session encryption and decryption.
DefaultSessionMaxAge is the default session max age.
Version is the current version of the package.

# Structs

Application is the handler for all requests.
Context is the request context.
ProxyConfig defines the proxy config.
RouterGroup is a group of routes.
StaticOptions is the options for static method.
TemplateConfig is the template config.
WebSocketOption ...

# Interfaces

HTTPError is a custom error type for HTTP errors.
ResponseWriter ...

# Type aliases

GroupFunc defines the group handler used by zoox.
H is a shortcut for map[string]interface{}.
HandlerFunc defines the request handler used by zoox.
JSONRPCHandlerFunc defines the jsonrpc handler used by zoox.
Middleware defines the signature of the middleware function.
TemplateOption is the template option.
WsHandlerFunc defines the websocket handler used by zoox.