Go Quick Start
Get started with Bytedocs in Go applications
Bytedocs for Go supports the most popular frameworks with zero-configuration auto-detection.
Supported Frameworks
- Gin - The fastest full-featured web framework
- Echo - High performance, minimalist framework
- Fiber - Express-inspired framework built on Fasthttp
- Gorilla Mux - Powerful URL router and dispatcher
- net/http - Standard library HTTP server
Installation
Quick Start Examples
Gin Framework
Echo Framework
Fiber Framework
Gorilla Mux
Configuration Options
Basic Configuration
Multiple Environments
With Authentication
Auto-Detection Features
Bytedocs automatically detects:
1. Route Information
- HTTP method (GET, POST, PUT, DELETE, etc.)
- Path with parameters (
/users/:id) - Handler function
2. Request Parameters
Path Parameters:
Query Parameters:
Headers:
3. Request Body
4. Response Types
Struct Tags for Better Documentation
JSON Tags
Example Tags
Validation Tags
Description in Comments
Manual Route Registration
For complex cases, you can manually add routes:
Visit Documentation
Start your server and visit:
What's Next?
- Core Concepts - Understand how auto-detection works
- Configuration - Advanced configuration options
- AI Assistant - Add intelligent API chat
- Examples - See complete example projects