Hi folks! Just a note that I (@marcaruel) am moving periph.io to a different registrar. This may cause the website to be down for a moment. Hopefully the Go Proxy should handle go get requests in the meantime.
periph.io exclusively uses structs for options to keep the generated code tight and reduce the black box effect. @epcjones wrote a great explanation and benchmarks.
tip: make your struct future proof with a "_ struct{}" trailing field.
Go: The "functional options" pattern is slow. Don't use it for functions that are called in critical paths. (I'm looking at you, StartSpan in all Go tracing APIs) evanjones.ca/go-functional-…
Users were confused by the old code base, so today I am deleting it.
Users who do not want to migrate can stick on v3.6.8 but this code base doesn't support RPi4 among other features from the past 2 years.