Powerful template for CLI projects in Go 🐹

This page summarizes the projects mentioned and recommended in the original post on reddit.com/r/golang

Our great sponsors
  • SonarLint - Clean code begins in your IDE with SonarLint
  • InfluxDB - Access the most powerful time series database as a service
  • SaaSHub - Software Alternatives and Reviews
  • go-template

    ☄️ Powerful template for Go CLI projects with advanced config management (by metafates)

  • viper

    Go configuration with fangs

    Advanced config management with viper and useful config commands such as setting or getting config values directly from CLI (like this config set -k logs.write -v true ). ENV & File (TOML or YAML) based configuration. Configuration is self-documented, simple type config info to show every config field available with description for each, so no need to write a whole wiki page to explain what each setting does.

  • SonarLint

    Clean code begins in your IDE with SonarLint. Up your coding game and discover issues early. SonarLint is a free plugin that helps you find & fix bugs and security issues from the moment you start writing code. Install from your favorite IDE marketplace today.

  • cobra

    A Commander for modern Go CLI interactions

    Polished CLI experience with cobra and coloredcobra to make things look pretty

  • coloredcobra

    ColoredСobra is a library that allows to colorize the text output of the Cobra library

    Polished CLI experience with cobra and coloredcobra to make things look pretty

  • afero

    A FileSystem Abstraction System for Go

    Afero filesystem for various fs utils, abstractions and in-memory fs for testing. For example, instead of os.Remove("file") use filesystem.Api().Remove("file")

  • logrus

    Structured, pluggable logging for Go.

    Preconfigured logging with logrus

  • lipgloss

    Style definitions for nice terminal layouts 👄

    Predefined colors for lipgloss

  • InfluxDB

    Access the most powerful time series database as a service. Ingest, store, & analyze all types of time series data in a fully-managed, purpose-built database. Keep data forever with low-cost storage and superior data compression.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts