Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 367 Bytes

README.md

File metadata and controls

24 lines (17 loc) · 367 Bytes

Go Server Framework

Package server provides an opinionated server framework in Go.

Usage

package main

import "github.com/remerge/go-server"

type serverHandler struct {
}

func (h *serverHandler) Handle(c *server.Connection) {
 // Handle stuff here
}

func main() {
 s, _ := server.NewServer(12345)
    s.Handler = &serverHandler{}
    s.Run()
}