Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Export ¶
type Export struct {
// Allowlist is "Export.allowlist"
//
// Optional
Allowlist js.Array[js.String]
FFI_USE bool
}
func (*Export) FreeMembers ¶
FreeMembers frees fields with heap reference, if recursive is true free all heap references reachable from p.
func (*Export) UpdateFrom ¶
UpdateFrom copies value of all fields of the heap object to p.
type Import ¶
type Import struct {
// Id is "Import.id"
//
// Optional
Id js.String
// MinimumVersion is "Import.minimum_version"
//
// Optional
MinimumVersion js.String
FFI_USE bool
}
func (*Import) FreeMembers ¶
FreeMembers frees fields with heap reference, if recursive is true free all heap references reachable from p.
func (*Import) UpdateFrom ¶
UpdateFrom copies value of all fields of the heap object to p.
type ManifestKeys ¶
type ManifestKeys struct {
// Import is "ManifestKeys.import"
//
// Optional
Import js.Array[Import]
// Export is "ManifestKeys.export"
//
// Optional
//
// NOTE: Export.FFI_USE MUST be set to true to get Export used.
Export Export
FFI_USE bool
}
func (*ManifestKeys) FreeMembers ¶
func (p *ManifestKeys) FreeMembers(recursive bool)
FreeMembers frees fields with heap reference, if recursive is true free all heap references reachable from p.
func (ManifestKeys) FromRef ¶
func (p ManifestKeys) FromRef(ref js.Ref) ManifestKeys
FromRef calls UpdateFrom and returns a ManifestKeys with all fields set.
func (ManifestKeys) New ¶
func (p ManifestKeys) New() js.Ref
New creates a new ManifestKeys in the application heap.
func (*ManifestKeys) Update ¶
func (p *ManifestKeys) Update(ref js.Ref)
Update writes all fields of the p to the heap object referenced by ref.
func (*ManifestKeys) UpdateFrom ¶
func (p *ManifestKeys) UpdateFrom(ref js.Ref)
UpdateFrom copies value of all fields of the heap object to p.