Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct { Entity string `json:"entity"` Segments []Segment `json:"segments"` Period Period `json:"period"` }
Context represents the context of a fact in the XBRL data.
type Fact ¶
type Fact struct { Context Context `json:"context"` Concept string `json:"concept"` Value any `json:"value"` Decimals string `json:"decimals,omitempty"` Unit string `json:"unit,omitempty"` }
Fact represents a single fact in the XBRL data.
type Period ¶
type Period struct { Instant string `json:"instant,omitempty"` StartDate string `json:"startDate,omitempty"` EndDate string `json:"endDate,omitempty"` }
Period represents the period of a fact in the XBRL data.
type XBRL ¶
type XBRL struct {
Facts []Fact `json:"facts"`
}
XBRL represents the parsed XBRL data.
func (*XBRL) NumericFacts ¶
NumericFacts returns only the facts that have numeric values (integers or floats).
func (*XBRL) UnmarshalXML ¶
UnmarshalXML decodes the XML data into the XBRL struct.
Click to show internal directories.
Click to hide internal directories.