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
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)