Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/billcoding/flygo

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/billcoding/flygo

  • v1.0.0
  • Source
  • Go
  • Socket score

Version published
Created
Source

flygo

Go Report Card GoDoc

Overview

Introduction

A simple and lightweight web framework, pure native and no third dependencies.

Features

  • Pure native
  • No third dependencies
  • Middleware supports
  • Session supports
  • REST-ful controllers
  • Binding & Validator
  • Session supports
  • Basic & Variable & Group router
  • Multiple supports
  • Rich render supports

Install

Install by Go PATH

mkdir -p $GOPATH/src/github.com/billcoding/flygo

cd $GOPATH/src/github.com/billcoding

git clone https://github.com/billcoding/flygo.git flygo

Install by Go Module

require github.com/billcoding/flygo latest

Quickstart

Build hello world App

package main

import (
	"fmt"
	"github.com/billcoding/flygo"
	. "github.com/billcoding/flygo/context"
	"io/ioutil"
	"net/http"
	"time"
)

func main() {
	go func() {
		time.AfterFunc(time.Second, func() {
			response, _ := http.Get("http://localhost")
			resp, _ := ioutil.ReadAll(response.Body)
			fmt.Println(string(resp))
		})
	}()
	flygo.GetApp().Get("/", func(ctx *Context) {
		ctx.Text("Hello world")
	}).Run()
}

Thanks

FAQs

Package last updated on 18 Nov 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc