TuskLang Logo PNT

TuskLang for
Go

Build concurrent, intelligent configurations for Go applications. Leverage goroutines, channels, and Go's performance directly from your config files.

go get
Package Manager
1min
Setup Time
1.19+
Go Version

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.

GORM

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.

testing

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
config.tsk
# 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

go get github.com/cyber-boost/tusktsk/go

2 Create your configuration

# config.tsk
app_name: "MyGoApp"
port: @env("PORT", 8080)

3 Load in your Go app

import "github.com/cyber-boost/tusktsk/go"
config := tusklang.Load("config.tsk")
Complete Guide View Examples