Go Configuration: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 7: Line 7:


Environment variables and configuration files are useful '''in addition''' to flags.
Environment variables and configuration files are useful '''in addition''' to flags.
Explicit command line flags always take precedence over environment variables and configuration files.

Revision as of 19:05, 22 December 2023

Internal

Overview

In-line help-supported flags are the best way to configure your program, rather than environment variables.

Environment variables and configuration files are useful in addition to flags.

Explicit command line flags always take precedence over environment variables and configuration files.