func CheckMarshalType(mt MarshalType) error {
	if mt < 0 || mt > 6 {
		return fmt.Errorf("MarshalType should be in range [0..6]; got %d", mt)
	}
	return nil
}
// CheckMarshalType verifies whether the mt is valid.
CheckMarshalType verifies whether the mt is valid.
// CheckMarshalType verifies whether the mt is valid .
func CheckMarshalType(mt MarshalType) error {
	if mt < 0 || mt > 6 {
		return fmt.Errorf("MarshalType should be in range [0..6]; got %d", mt)
	}
	return nil
}
func CheckMarshalType ( mt MarshalType ) error { if mt < 0 || mt > 6 { return fmt . Errorf ( " " , mt ) } return nil }
CheckMarshalType verifies whether the mt is valid.
CheckMarshalType verifies whether the mt is valid .