code: func (p *Number) Validate() error {
  	if p.Int8 != nil {
  		p.Variant = NumberVariantInt8
  	} else if p.Int16 != nil {
  		p.Variant = NumberVariantInt16
  	} else if p.Int32 != nil {
  		p.Variant = NumberVariantInt32
  	} else if p.Int64 != nil {
  		p.Variant = NumberVariantInt64
  	} else if p.Float32 != nil {
  		p.Variant = NumberVariantFloat32
  	} else if p.Float64 != nil {
  		p.Variant = NumberVariantFloat64
  	} else {
  		return fmt.Errorf("Number: Missing required variant")
  	}
  	return nil
  }
docs: //
  // Validate for Number
  //