Skip to content

n-creativesystem/go-fwncs

Repository files navigation

N-CreativeSystem Framework

Golang original framework

Inspired by Gin + Echo.

Content

Example

package main

import (
    "github.com/n-creativesystem/go-fwncs"
)

func main() {
    router := fwncs.Default()
    router.GET("/", func(c fwncs.Context) {})
    api := router.Group("/api/v1")
    {
        api.GET("/resource/:name", func(c fwncs.Context) {})
        api.GET("= /resource/full-match", func(c fwncs.Context) {})
    }
    router.Run(8080) // or router.RunTLS(8443, "server.crt", "server.key")
}