github.com/tobgu/qframe@v0.4.0/config/doc.go (about)

     1  /*
     2  Package config acts as a base package for different configuration options used when creating or working with QFrames.
     3  
     4  Most of the configs use "functional options" as presented here:
     5  https://dave.cheney.net/2014/10/17/functional-options-for-friendly-apis
     6  
     7  While it is a nice way to overcome the lack of keyword arguments in Go to be able to extend function
     8  signatures in a backwards compatible way the problem with this method (as I see it) is that the
     9  discoverability of existing config options is lacking.
    10  
    11  This structure hopes to help (a bit) in fixing that by having a separate package for each configuration
    12  type. That way the function listing of each package conveys all options available for that particular
    13  config option.
    14  */
    15  package config