25'ten fazla konu seçemezsiniz
Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
|
- package ratio_setting
-
- import "sync/atomic"
-
- var exposeRatioEnabled atomic.Bool
-
- func init() {
- exposeRatioEnabled.Store(false)
- }
-
- func SetExposeRatioEnabled(enabled bool) {
- exposeRatioEnabled.Store(enabled)
- }
-
- func IsExposeRatioEnabled() bool {
- return exposeRatioEnabled.Load()
- }
|