TuskLang for
Go
Build concurrent, intelligent configurations for Go applications. Leverage goroutines, channels, and Go's performance directly from your config files.
Why Go Developers Love TuskLang
Replace static YAML configs with concurrent, intelligent configuration files that leverage Go's strengths.
@ Operators for Go
Query APIs, execute Go code, and leverage goroutines directly from configuration files using powerful @ operators.
Database Integration
Native GORM and database/sql support. Query your database directly from config files with full Go integration.
Concurrency Ready
Built for Go's concurrency model. Utilize goroutines and channels for configuration loading and real-time updates.
Gin & Echo Integration
Drop-in integration for Gin, Echo, Fiber, and other Go frameworks. Middleware and handlers included.
Performance Optimized
Zero-allocation design and compile-time optimization. Built for high-performance Go applications and microservices.
Go Testing
Built-in testing package support with test helpers and mocking utilities for testing configurations and @ operators.
Concurrent Configuration
Traditional YAML configs are static files. TuskLang configs are concurrent, intelligent Go-integrated configurations.
- 🐹 Native Go integration
- ⚡ Goroutine-powered loading
- 🔄 Channel-based updates
- 🚀 Zero-allocation design
- 📦 go get ready
# Smart Go Configuration
app_name: "MyGoApp"
port: @env("PORT", 8080)
# Database with connection pooling
database {
dsn: @env("DATABASE_URL")
max_connections: @query("SELECT COUNT(*) FROM connections") * 2
idle_timeout: @optimize("db_idle_timeout", "5m")
}
# Goroutine configuration
runtime {
max_goroutines: @learn("optimal_goroutines", 1000)
gc_percent: @env("GOGC", 100)
max_procs: @cache("10m", @query("SELECT cpu_count FROM system_info"))
}
# Feature flags with A/B testing
features: @query("SELECT name FROM features WHERE active = true")
Go Ecosystem Integration
Works seamlessly with your favorite Go frameworks and libraries
Gin
HTTP web framework
Echo
High performance framework
Fiber
Express inspired framework
GORM
ORM library
Beego
MVC framework
Buffalo
Rapid web development
Get Started in Minutes
Install TuskLang for Go and start building concurrent, intelligent configurations
1 Install via go get
2 Create your configuration
app_name: "MyGoApp"
port: @env("PORT", 8080)
3 Load in your Go app
config := tusklang.Load("config.tsk")