Golly Core

Golly Core

This section contains the documentation for all the core packages available in Golly, a robust collection of enterprise-grade Go libraries.

The core packages provide the foundation for Golly’s functionality, offering solutions for common programming challenges while adhering to Go’s philosophy of simplicity and performance.

Package Categories

๐Ÿ”ง Fundamentals

Core building blocks and essential utilities.

PackageDescription
AssertionA flexible and extensible assertion library for consistent testing
CLICommand-line interface tools for building complex applications
CollectionsGeneric data structures โ€” ArrayList, LinkedList, HashSet, Queue, Stack
ConfigConfiguration management utilities
ErrUtilsError handling and multi-error aggregation
FnUtilsDeferred and timed function execution utilities

๐Ÿ“ก Networking & Communication

HTTP clients, servers, routers, and messaging interfaces.

PackageDescription
ClientsHTTP client with auth providers, retry with backoff, and circuit breaker
RESTHTTP server with routing, middleware, TLS, and transport configuration
TurboEnterprise-grade HTTP router with path/query params, filters, CORS, and auth middleware
MessagingProducer/consumer interfaces with local channel-based provider

๐Ÿ—ƒ๏ธ Data & Encoding

Data serialization, encoding/decoding, and identifier generation.

PackageDescription
CodecUnified encoding/decoding for JSON, XML, YAML with struct validation
DataPipeline key-value container with typed extraction and JSON Schema generation
SemVerSemantic versioning parser and comparator
TextUtilsNamed ASCII character constants for readable code
UUIDUUID generation (V1โ€“V4) and parsing

๐Ÿค– AI & Intelligence

Provider-agnostic Generative AI integration.

PackageDescription
GenAIProvider-agnostic GenAI/LLM interface with prompt templates โ€” supports OpenAI, Claude, and Ollama

๐Ÿ› ๏ธ Infrastructure

System-level utilities for filesystem, logging, lifecycle, and security.

PackageDescription
FSUtilsFilesystem utilities: existence checks, content type detection
IOUtilsMIME type lookup, channel utilities, and checksum calculation
L3Lightweight Levelled Logger with console/file writers and async support
LifecycleComponent lifecycle management with dependency ordering
ManagersGeneric item manager for registering, retrieving, and listing named items
PoolGeneric, thread-safe object pool with configurable capacity
SecretsAES encryption and decryption for strings and byte slices
VFSVirtual File System with unified interface, extensible for cloud storage

๐Ÿงช Testing

Testing utilities and assertion helpers.

PackageDescription
TestingLightweight assertion helpers for unit tests