goweb

package module
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2022 License: MIT Imports: 10 Imported by: 0

README

基于golang 开发的轻量web框架

  • 内置部分web常用包
    • session
    • sql

安装

go get -u github.com/cjie9759/goWeb

demo运行

git clone git@github.com:cjie9759/goWeb.git/Demo t
cd t && go mod tidy
go run .

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MWLog

func MWLog(h http.Handler) http.Handler

Types

type Application added in v1.0.1

type Application struct {
	// contains filtered or unexported fields
}

func NewApp

func NewApp(fs *embed.FS) *Application

func (*Application) Debug added in v1.0.1

func (p *Application) Debug() *Application

func (*Application) Get added in v1.0.1

func (p *Application) Get(c interface{}) *Application

func (*Application) Run added in v1.0.1

func (p *Application) Run(addr string) error

func (*Application) ServeHTTP added in v1.0.1

func (p *Application) ServeHTTP(w http.ResponseWriter, r *http.Request)

func (*Application) SetMiddle added in v1.0.1

func (p *Application) SetMiddle(f func(h http.Handler) http.Handler) *Application

type View

type View struct {
	controller.BaseApp
}

func (*View) Init

func (t *View) Init(fs *embed.FS)

Directories

Path Synopsis
ext
dbs

Jump to

Keyboard shortcuts

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