filmov
tv
The Options Pattern in Golang!? ~ Service Configuration

Показать описание
In this video, I discuss a simple concept to set optional fields with Golang structs/library configuration, this is commonly known as the Options pattern.
I typically use this pattern for setting optional fields on things like HTTP servers (as shown in this video), and any library with defaults that can be overwritten etc
I personally prefer this approach rather than opting for a Config struct or just plain old arguments, and getting for `nil` values for example.
Let me know what you think of this pattern, and if you've used it!
I typically use this pattern for setting optional fields on things like HTTP servers (as shown in this video), and any library with defaults that can be overwritten etc
I personally prefer this approach rather than opting for a Config struct or just plain old arguments, and getting for `nil` values for example.
Let me know what you think of this pattern, and if you've used it!
Go (Golang) Functional Options Pattern
The Options Pattern in Golang!? ~ Service Configuration
The Most Efficient Struct Configuration Pattern For Golang
Go - Functional Options Pattern
GO | The Functional Options Pattern with easy Example in Code
Golang Functional Options Pattern Example Tutorial
Golang Functional Options pattern && NoTalk
Learning Golang: Functional Options / Default Configuration Values Pattern
Go Tips - Options Pattern
GopherCon Europe 2023: Julien Cretel - Useful Functional-Options Tricks for Better Libraries
Golang for Hackers - LDAP Injector - Episode 04 - Functional Options Pattern
GO | The Builder Pattern with easy Example in Code
Supercharge Your Clients - The Functional Options Parameter Pattern in Go!
I'm Starting To Like This Configuration Pattern In Go
Another Amazing Use Case For The FOP Pattern In Go
Go Patterns: Implementing the Function Options Pattern #masteringGoSeries
#14 Golang - Builder Design Pattern in Go
Common Patterns and Anti Patterns - Using Golang
Software Architecture in Golang: Externalized Configuration Pattern
Why the Options Pattern is Great for Security - Dima Kotik
Why the Options Pattern is Great for Security. - Dima Kotik
Read Configuration Values in ASP.NET Core using Options Pattern
Functional Options in Go
Options pattern di Go
Комментарии