go-config-logging

Community

Structured config and logging for Go apps.

AuthorOlegHQ
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Go applications often rely on environment variables for configuration and require consistent, structured logging. This skill provides a clean way to load config from the environment with sensible defaults and to switch between JSON and text logging formats.

Core Features & Use Cases

  • Environment-driven config loading with sensible defaults (Port, Host, MongoURI, MongoName, etc.)
  • Structured logging with slog supporting JSON output when JSON_LOGS is enabled
  • Main.go wiring patterns and request logging middleware for production-grade Go services
  • Examples of error handling, dependency wiring, and observability in startup and request paths

Quick Start

Set the environment variables PORT, HOST, MONGO_URI, MONGO_NAME, and JSON_LOGS, then run the Go application to bootstrap configuration and logging.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: go-config-logging
Download link: https://github.com/OlegHQ/claude-config/archive/main.zip#go-config-logging

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.