gonet

module
v0.0.0-...-54fa1f4 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2014 License: BSD-3-Clause

README

gonet

gonet is a simple and useful go network framework

It's support high-performance http server,include a proxy server and a http framework And providing a high-performance socket framework

Quick Start

##http server

package main

import (
	myhttp "github.com/Alienero/gonet/http"
)

func main() {
	group := myhttp.NewMuxGroup()
	group.Add("/hello", &hello{})
	myhttp.Mux.AddGroup("/good", group, &index{})
	myhttp.Run(":80")
}

type hello struct {
	myhttp.Controller
}

func (c *hello) Get() {
	c.Ctx.WriteString("hello ")
}

type index struct {
	myhttp.Controller
}

func (c *index) Get() {
	c.Ctx.WriteString("曼曼猪")
}

Directories

Path Synopsis
archive
zip
Package gzip implements reading and writing ZIP archives.
Package gzip implements reading and writing ZIP archives.
container
stack
Package gzip implements a simple stack
Package gzip implements a simple stack
Package htto implements a simple and userful http framwork
Package htto implements a simple and userful http framwork

Jump to

Keyboard shortcuts

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