Skip to content

Latest commit

 

History

History
7 lines (6 loc) · 343 Bytes

README.md

File metadata and controls

7 lines (6 loc) · 343 Bytes

Functional-options

Function is a subroutine/block of code that takes one or more parameter as input and returns zero or more output parameters.

Functional options a paradigm in Go

  • Lets you write code that can grow over time
  • Provide meaningful configuration parameters
  • Options implemented as a function set the state of that option