TIL: strongly typed CLI flags in Go

Today I learned that you can make strongly typed CLI flags using Go&rsquo;s standard flag package. flag is a package I&rsquo;m fond of and I&rsquo;ve written about it before . I think the package is underappreciated and harbours hidden depths. You make strongly typed flags in Go by implementing the flag.Value interface. One thing I really liked about this approach is that it gives you a contained…