Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 

18 wiersze
283 B

  1. package ratio_setting
  2. import "sync/atomic"
  3. var exposeRatioEnabled atomic.Bool
  4. func init() {
  5. exposeRatioEnabled.Store(false)
  6. }
  7. func SetExposeRatioEnabled(enabled bool) {
  8. exposeRatioEnabled.Store(enabled)
  9. }
  10. func IsExposeRatioEnabled() bool {
  11. return exposeRatioEnabled.Load()
  12. }