First Go program - would love criticism: a small program that outputs VPN status, IP and emoji-flag

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

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • argos

    Create GNOME Shell extensions in seconds

    What does this do: It's a command line utility for Linux to query NordVPN daemon for connectivity status, then query an external Geo-IP service, and display (with colors using ANSI terminal colors) the status, the IP and the flag. The output is fed to the Argos shell extension and then displayed on my GNOME top-bar.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

  • color

    Color package for Go (golang)

    I would use bytes.Contains instead of string.Contains and I would use github.com/fatih/color for ansi colours rather than re-implienting it yourself. Best not to call log.Fatal in functions other than main - it makes testing hard. Instead they should return an error after their main return value.

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