Improved Property doc comment.

This commit is contained in:
scruzin 2019-01-15 09:57:59 +10:30
parent 3ab2c1f69a
commit 65d0952dd3
1 changed files with 7 additions and 2 deletions

View File

@ -75,10 +75,15 @@ type Object struct {
Properties []Property Properties []Property
} }
// Property represents an AMF property. // Property represents an AMF property, which is effectively a
// union. The Type is the AMF data type (uint8 per the specification),
// and specifies which member holds a value. Numeric types use
// Number, string types use String and arrays and objects use
// Object. The Name is optional.
type Property struct { type Property struct {
Name string
Type uint8 Type uint8
Name string
Number float64 Number float64
String string String string
Object Object Object Object