Skip to content

Conversation

@serprex
Copy link

@serprex serprex commented Jan 15, 2025

raises go version to 1.18

this is a breaking change since consumers will update with errors.RedactLogEnabled.Store(&errors.RedactLogEnable). ideally this wouldn't be exposed & instead there'd be a function errors.SetRedactLogEnabled(...) & even better the enum would be an integer which could then use atomic.Int32 in behind

@serprex
Copy link
Author

serprex commented Jan 15, 2025

(note that modern go.uber.org/atomic uses these atomic types, their String is specialization built on top of Value which is takes interface{} for Load/Store)

https://github.com/uber-go/atomic/blob/v1.11.0/string.go#L26
https://github.com/uber-go/atomic/blob/v1.11.0/value.go#L27

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant