Skip to content

Implement the functional options design pattern #7

@pd93

Description

@pd93

Dave Cheney has recently popularised the following pattern for passing configuration options to Golang structures with private fields. We should investigate whether this is a good fit for PLog.

https://dave.cheney.net/2014/10/17/functional-options-for-friendly-apis
https://play.golang.org/p/VcWqWcAEyz

Metadata

Metadata

Assignees

Labels

featureA new feature that will be implemented

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions