Skip to content
Proyek

Tentang

Framework Go modular untuk sistem yang dapat dirangkai

Pengembangan web dan aplikasi

Cara angka ini diukur

Yang dapat Anda lakukan

  • The most powerful routing syntax among all web frameworks within the Go ecosystem.
  • Limitless routes nesting and grouping.
  • Inject middleware at wherever you want.
  • Integrate with any existing Go web application non-intrusively.

Pertumbuhan bintang terukur

dalam 24 jam
0
dalam 7 hari
-1
dalam 15 hari
0
dalam 1 bulan
0

Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.

README.md

Asli

Flamego

GitHub Workflow Status Codecov GoDoc Sourcegraph Netlify Status

Flamego is a modular Go framework for building composable systems, and equips the most powerful routing syntax among all web frameworks within the Go ecosystem.

Installation

go get github.com/flamego/flamego

Getting started

package main

import "github.com/flamego/flamego"

func main() {
	f := flamego.Classic()
	f.Get("/", func() string {
		return "Hello, Flamego!"
	})
	f.Run()
}

Features

Middleware

  • Logger - Log requests and response status code
  • Recovery - Automatic recovery from panics
  • Static - Serve static files
  • Renderer - Render content
  • template - Go template rendering
  • session - User session management
  • cache - Cache management
  • binding - Request data binding and validation
  • csrf - Generate and validate CSRF tokens
  • cors - Cross-Origin Resource Sharing
  • gzip - Gzip compression to responses
  • brotli - Brotli compression to responses
  • i18n - Internationalization and localization
  • auth - Basic and bearer authentication
  • altcha - Self-hosted ALTCHA proof-of-work captcha
  • recaptcha - Google reCAPTCHA verification
  • hcaptcha - hCaptcha verification
  • captcha - Captcha service
  • sse - Server-Sent Events

Getting help

Local development

Install "go-mockgen" and "goimports" to re-generate mocks:

go install github.com/unknwon/go-mockgen/cmd/go-mockgen@main
go install golang.org/x/tools/cmd/goimports@latest

go generate ./...

License

This project is under the MIT License. See the LICENSE file for the full license text.

Jelajahi proyek terkait

Memuat…