Useful functional-options tricks for better Go libraries [video]

  • Functional options is a creational pattern that remains divisive in the Go community: loved by some, loathed by others. However, the pattern can tremendously improve a library’s API design. Throw in a few twists and unleash the full power of functional options on your Go libraries! (Talk given by Julien Cretel at GopherCon Europe 2023)