Go Standard Library Cookbook
上QQ阅读APP看书,第一时间看更新

File configuration with functional options

This recipe is not directly related to the Go standard library but includes how to handle an optional configuration for your application. The recipe will use the functional options pattern in a real case with a file configuration.