Skip to content
This repository has been archived by the owner on Oct 6, 2022. It is now read-only.

Added .Val() helper methods to nilable enum types

Compare
Choose a tag to compare
@mxmCherry mxmCherry released this 26 Oct 20:03
· 198 commits to master since this release

Changes since v9.0.0:

  • added .Val() helper methods to nilable enum types for safe pointer dereferencing - return default value for nil:
v := Video{
  StartDelay: nil,
}
println(v.StartDelay.Val()) // 0 (StartDelayPreRoll)