Documentation ¶
Index ¶
- Variables
- func OptionalBool(v bool) *bool
- func OptionalIndex(v int) ml.OptionalIndex
- type BorderStyleType
- type Bounds
- func (b *Bounds) Contains(cIdx, rIdx int) bool
- func (b *Bounds) ContainsRef(celRef CellRef) bool
- func (b *Bounds) Dimension() (width int, height int)
- func (b *Bounds) Equals(a Bounds) bool
- func (b Bounds) Hash() index.Code
- func (b Bounds) IsEmpty() bool
- func (b Bounds) MarshalXMLAttr(name xml.Name) (xml.Attr, error)
- func (b *Bounds) Overlaps(a Bounds) bool
- func (b Bounds) String() string
- func (b *Bounds) ToRef() Ref
- func (b *Bounds) UnmarshalXMLAttr(attr xml.Attr) error
- type BoundsList
- type CellFormulaType
- type CellRef
- type CellType
- type ConditionOperatorType
- type ConditionType
- type ConditionValueType
- type FontCharsetType
- type FontEffectType
- type FontFamilyType
- type FontSchemeType
- type GradientType
- type HAlignType
- type IconSetType
- type ObjectsType
- type PatternType
- type Ref
- type RefList
- type Text
- type TimePeriodType
- type UnderlineType
- type UpdateLinksType
- type VAlignType
- type VisibilityType
Constants ¶
This section is empty.
Variables ¶
var ( ToHAlignType map[string]HAlignType FromHAlignType map[HAlignType]string )
HAlignType maps for marshal/unmarshal process
var ( ToVAlignType map[string]VAlignType FromVAlignType map[VAlignType]string )
VAlignType maps for marshal/unmarshal process
var ( ToBorderStyleType map[string]BorderStyleType FromBorderStyleType map[BorderStyleType]string )
BorderStyleType maps for marshal/unmarshal process
var ( ToCellType map[string]CellType FromCellType map[CellType]string )
nolint
var ( ToConditionOperatorType map[string]ConditionOperatorType FromConditionOperatorType map[ConditionOperatorType]string )
ConditionOperatorType maps for marshal/unmarshal process
var ( ToConditionValueType map[string]ConditionValueType FromConditionValueType map[ConditionValueType]string )
ConditionType maps for marshal/unmarshal process
var ( ToGradientType map[string]GradientType FromGradientType map[GradientType]string )
GradientType maps for marshal/unmarshal process
var ( ToIconSetType map[string]IconSetType FromIconSetType map[IconSetType]string )
IconSetType maps for marshal/unmarshal process
var ( ToPatternType map[string]PatternType FromPatternType map[PatternType]string )
PatternType maps for marshal/unmarshal process
var ( ToVisibilityType map[string]VisibilityType FromVisibilityType map[VisibilityType]string )
nolint
Functions ¶
func OptionalBool ¶
OptionalBool is helper function that allow encode/decode optional boolean, where false should not be omitted - mostly for booleans with default true value
func OptionalIndex ¶
func OptionalIndex(v int) ml.OptionalIndex
OptionalIndex is helper alias for ml.OptionalIndex from core package
Types ¶
type BorderStyleType ¶
type BorderStyleType byte
BorderStyleType is a type to encode XSD BorderStyleType
func (*BorderStyleType) MarshalXMLAttr ¶
MarshalXMLAttr marshal BorderStyleType
func (BorderStyleType) String ¶
func (t BorderStyleType) String() string
func (*BorderStyleType) UnmarshalXMLAttr ¶
func (t *BorderStyleType) UnmarshalXMLAttr(attr xml.Attr) error
UnmarshalXMLAttr unmarshal BorderStyleType
type Bounds ¶
type Bounds struct { FromCol int FromRow int ToCol int ToRow int // contains filtered or unexported fields }
Bounds is implementation of Ref
func BoundsFromIndexes ¶
BoundsFromIndexes returns a Bounds information for provided 0-based indexes
func (*Bounds) ContainsRef ¶
ContainsRef checks if celRef is inside of bounds
func (Bounds) MarshalXMLAttr ¶
MarshalXMLAttr marshal Bounds
type BoundsList ¶
type BoundsList []Bounds
BoundsList is implementation of RefList
func BoundsListFromRefs ¶
func BoundsListFromRefs(refs ...Ref) BoundsList
BoundsListFromRefs returns BoundsList for provided refs
func (BoundsList) IsEmpty ¶
func (bl BoundsList) IsEmpty() bool
IsEmpty return true if type was not initialized
func (*BoundsList) MarshalXMLAttr ¶
MarshalXMLAttr marshal BoundsList
func (BoundsList) String ¶
func (bl BoundsList) String() string
String return textual version of BoundsList
func (*BoundsList) ToRefList ¶
func (bl *BoundsList) ToRefList() RefList
ToRefList returns refs. Alias of String() method
func (*BoundsList) UnmarshalXMLAttr ¶
func (bl *BoundsList) UnmarshalXMLAttr(attr xml.Attr) error
UnmarshalXMLAttr unmarshal BoundsList
type CellFormulaType ¶
type CellFormulaType byte
CellFormulaType is a type to encode XSD ST_CellFormulaType
const ( CellFormulaTypeNormal CellFormulaType CellFormulaTypeArray CellFormulaTypeDataTable )
List of all possible values for CellFormulaType
func (*CellFormulaType) MarshalXMLAttr ¶
MarshalXMLAttr marshal CellFormulaType
func (CellFormulaType) String ¶
func (e CellFormulaType) String() string
func (*CellFormulaType) UnmarshalXMLAttr ¶
func (e *CellFormulaType) UnmarshalXMLAttr(attr xml.Attr) error
UnmarshalXMLAttr unmarshal CellFormulaType
type CellRef ¶
type CellRef string
CellRef is a type to encode XSD ST_CellRef, an A1 style reference to the location of this cell
func CellRefFromIndexes ¶
CellRefFromIndexes returns a CellRef for 0-based indexes
type CellType ¶
type CellType byte
CellType is a type to encode XSD ST_CellType
func (*CellType) MarshalXMLAttr ¶
MarshalXMLAttr marshal CellType
type ConditionOperatorType ¶
type ConditionOperatorType byte
ConditionOperatorType is a direct mapping of XSD ST_ConditionalFormattingOperator
const ( ConditionOperatorLessThan ConditionOperatorType ConditionOperatorLessThanOrEqual ConditionOperatorEqual ConditionOperatorNotEqual ConditionOperatorGreaterThanOrEqual ConditionOperatorGreaterThan ConditionOperatorBetween ConditionOperatorNotBetween ConditionOperatorContainsText ConditionOperatorNotContains ConditionOperatorBeginsWith ConditionOperatorEndsWith )
List of all possible values for OperatorType
func (*ConditionOperatorType) MarshalXMLAttr ¶
MarshalXMLAttr marshal ConditionOperatorType
func (ConditionOperatorType) String ¶
func (t ConditionOperatorType) String() string
func (*ConditionOperatorType) UnmarshalXMLAttr ¶
func (t *ConditionOperatorType) UnmarshalXMLAttr(attr xml.Attr) error
UnmarshalXMLAttr unmarshal ConditionOperatorType
type ConditionType ¶
type ConditionType byte
ConditionType is a direct mapping of XSD ST_CfType
const ( ConditionTypeExpression ConditionType ConditionTypeCellIs ConditionTypeColorScale ConditionTypeDataBar ConditionTypeIconSet ConditionTypeTop10 ConditionTypeUniqueValues ConditionTypeDuplicateValues ConditionTypeContainsText ConditionTypeNotContainsText ConditionTypeBeginsWith ConditionTypeEndsWith ConditionTypeContainsBlanks ConditionTypeNotContainsBlanks ConditionTypeContainsErrors ConditionTypeNotContainsErrors ConditionTypeTimePeriod ConditionTypeAboveAverage )
List of all possible values for Type
func (*ConditionType) MarshalXMLAttr ¶
MarshalXMLAttr marshal ConditionType
func (ConditionType) String ¶
func (t ConditionType) String() string
func (*ConditionType) UnmarshalXMLAttr ¶
func (t *ConditionType) UnmarshalXMLAttr(attr xml.Attr) error
UnmarshalXMLAttr unmarshal ConditionType
type ConditionValueType ¶
type ConditionValueType byte
ConditionValueType is a direct mapping of XSD ST_CfvoType
func (*ConditionValueType) IsAllowed ¶
func (t *ConditionValueType) IsAllowed(allowed ...ConditionValueType) bool
IsAllowed check if type is in list of allowed types
func (*ConditionValueType) MarshalXMLAttr ¶
MarshalXMLAttr marshal ConditionValueType
func (ConditionValueType) String ¶
func (t ConditionValueType) String() string
func (*ConditionValueType) UnmarshalXMLAttr ¶
func (t *ConditionValueType) UnmarshalXMLAttr(attr xml.Attr) error
UnmarshalXMLAttr unmarshal ConditionValueType
type FontCharsetType ¶
type FontCharsetType ml.PropertyInt
FontCharsetType is a type to encode charset of font
func (*FontCharsetType) MarshalXML ¶
func (t *FontCharsetType) MarshalXML(e *xml.Encoder, start xml.StartElement) error
MarshalXML marshal FontCharsetType
func (*FontCharsetType) UnmarshalXML ¶
func (t *FontCharsetType) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
UnmarshalXML unmarshal FontCharsetType
type FontEffectType ¶
FontEffectType is a type to encode XSD ST_VerticalAlignRun
const ( FontEffectBaseline FontEffectType = "baseline" FontEffectSuperscript FontEffectType = "superscript" FontEffectSubscript FontEffectType = "subscript" )
List of all possible values for FontEffectType
func (*FontEffectType) MarshalXML ¶
func (t *FontEffectType) MarshalXML(e *xml.Encoder, start xml.StartElement) error
MarshalXML marshal FontEffectType
func (*FontEffectType) UnmarshalXML ¶
func (t *FontEffectType) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
UnmarshalXML unmarshal FontEffectType
type FontFamilyType ¶
type FontFamilyType ml.PropertyInt
FontFamilyType is a type to encode XSD ST_FontFamily
func (*FontFamilyType) MarshalXML ¶
func (t *FontFamilyType) MarshalXML(e *xml.Encoder, start xml.StartElement) error
MarshalXML marshal FontFamilyType
func (*FontFamilyType) UnmarshalXML ¶
func (t *FontFamilyType) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
UnmarshalXML unmarshal FontFamilyType
type FontSchemeType ¶
FontSchemeType is a type to encode XSD ST_FontScheme
func (*FontSchemeType) MarshalXML ¶
func (t *FontSchemeType) MarshalXML(e *xml.Encoder, start xml.StartElement) error
MarshalXML marshal FontSchemeType
func (*FontSchemeType) UnmarshalXML ¶
func (t *FontSchemeType) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
UnmarshalXML unmarshal FontSchemeType
type GradientType ¶
type GradientType byte
GradientType is a type to encode XSD ST_GradientType
func (*GradientType) MarshalXMLAttr ¶
MarshalXMLAttr marshal GradientType
func (GradientType) String ¶
func (t GradientType) String() string
func (*GradientType) UnmarshalXMLAttr ¶
func (t *GradientType) UnmarshalXMLAttr(attr xml.Attr) error
UnmarshalXMLAttr unmarshal GradientType
type HAlignType ¶
type HAlignType byte
HAlignType is a type to encode XSD ST_HorizontalAlignment
func (*HAlignType) MarshalXMLAttr ¶
MarshalXMLAttr marshal HAlignType
func (HAlignType) String ¶
func (t HAlignType) String() string
func (*HAlignType) UnmarshalXMLAttr ¶
func (t *HAlignType) UnmarshalXMLAttr(attr xml.Attr) error
UnmarshalXMLAttr unmarshal HAlignType
type IconSetType ¶
type IconSetType byte
IconSetType is a direct mapping of XSD ST_CfvoType
func (*IconSetType) MarshalXMLAttr ¶
MarshalXMLAttr marshal IconSetType
func (IconSetType) String ¶
func (t IconSetType) String() string
func (*IconSetType) UnmarshalXMLAttr ¶
func (t *IconSetType) UnmarshalXMLAttr(attr xml.Attr) error
UnmarshalXMLAttr unmarshal IconSetType
type ObjectsType ¶
type ObjectsType byte
ObjectsType is a type to encode XSD ST_Objects
const ( ObjectsTypeAll ObjectsType ObjectsTypePlaceholders ObjectsTypeNone )
List of all possible values for ObjectsType
func (*ObjectsType) MarshalXMLAttr ¶
MarshalXMLAttr marshal ObjectsType
func (ObjectsType) String ¶
func (e ObjectsType) String() string
func (*ObjectsType) UnmarshalXMLAttr ¶
func (e *ObjectsType) UnmarshalXMLAttr(attr xml.Attr) error
UnmarshalXMLAttr unmarshal ObjectsType
type PatternType ¶
type PatternType byte
PatternType is a type to encode XSD ST_PatternType
func (*PatternType) MarshalXMLAttr ¶
MarshalXMLAttr marshal PatternType
func (PatternType) String ¶
func (t PatternType) String() string
func (*PatternType) UnmarshalXMLAttr ¶
func (t *PatternType) UnmarshalXMLAttr(attr xml.Attr) error
UnmarshalXMLAttr unmarshal PatternType
type Ref ¶
type Ref string
Ref is a type to encode XSD ST_Ref, a reference that identifies a cell or a range of cells. E.g.: N28 or B5:N10
func RefFromCellRefs ¶
RefFromCellRefs returns Ref for from/to CellRefs
func RefFromIndexes ¶
RefFromIndexes returns Ref for a CellRef of 0-based indexes
func (Ref) ToCellRefs ¶
ToCellRefs returns from/to CellRef of Ref
type RefList ¶
type RefList string
RefList is a type to encode XSD ST_Sqref, a reference that identifies list of cells or ranges of cells. E.g.: "N28 B5:N10 C10"
func RefListFromRefs ¶
RefListFromRefs returns RefList for refs
func (RefList) ToBoundsList ¶
func (r RefList) ToBoundsList() BoundsList
ToBoundsList returns related bounds of RefList
type Text ¶
type Text string
Text is textual type that can have leading/trailing whitespace or newlines that must be preserved
func (*Text) MarshalXML ¶
MarshalXML marshal Text
type TimePeriodType ¶
type TimePeriodType byte
TimePeriodType is a direct mapping of XSD ST_TimePeriod
const ( TimePeriodToday TimePeriodType TimePeriodYesterday TimePeriodTomorrow TimePeriodLast7Days TimePeriodThisMonth TimePeriodLastMonth TimePeriodNextMonth TimePeriodThisWeek TimePeriodLastWeek TimePeriodNextWeek )
List of all possible values for TimePeriodType
func (*TimePeriodType) MarshalXMLAttr ¶
MarshalXMLAttr marshal TimePeriodType
func (TimePeriodType) String ¶
func (t TimePeriodType) String() string
func (*TimePeriodType) UnmarshalXMLAttr ¶
func (t *TimePeriodType) UnmarshalXMLAttr(attr xml.Attr) error
UnmarshalXMLAttr unmarshal TimePeriodType
type UnderlineType ¶
UnderlineType is a type to encode XSD CT_UnderlineProperty
func (*UnderlineType) MarshalXML ¶
func (t *UnderlineType) MarshalXML(e *xml.Encoder, start xml.StartElement) error
MarshalXML marshal UnderlineType
func (*UnderlineType) UnmarshalXML ¶
func (t *UnderlineType) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
UnmarshalXML unmarshal UnderlineType
type UpdateLinksType ¶
type UpdateLinksType byte
UpdateLinksType is a type to encode XSD ST_UpdateLinks
const ( UpdateLinksTypeUserSet UpdateLinksType UpdateLinksTypeNever UpdateLinksTypeAlways )
List of all possible values for UpdateLinksType
func (*UpdateLinksType) MarshalXMLAttr ¶
MarshalXMLAttr marshal UpdateLinksType
func (UpdateLinksType) String ¶
func (e UpdateLinksType) String() string
func (*UpdateLinksType) UnmarshalXMLAttr ¶
func (e *UpdateLinksType) UnmarshalXMLAttr(attr xml.Attr) error
UnmarshalXMLAttr unmarshal UpdateLinksType
type VAlignType ¶
type VAlignType byte
VAlignType is a type to encode XSD ST_VerticalAlignment
func (*VAlignType) MarshalXMLAttr ¶
MarshalXMLAttr marshal VAlignType
func (VAlignType) String ¶
func (t VAlignType) String() string
func (*VAlignType) UnmarshalXMLAttr ¶
func (t *VAlignType) UnmarshalXMLAttr(attr xml.Attr) error
UnmarshalXMLAttr unmarshal VAlignType
type VisibilityType ¶
type VisibilityType byte
VisibilityType is a type to encode XSD ST_Visibility and ST_SheetState
func (*VisibilityType) MarshalXMLAttr ¶
MarshalXMLAttr marshal VisibilityType
func (VisibilityType) String ¶
func (e VisibilityType) String() string
func (*VisibilityType) UnmarshalXMLAttr ¶
func (e *VisibilityType) UnmarshalXMLAttr(attr xml.Attr) error
UnmarshalXMLAttr unmarshal VisibilityType
Source Files ¶
- align_h.go
- align_v.go
- border_style.go
- bounds.go
- bounds_list.go
- cell_formula_type.go
- cell_ref.go
- cell_type.go
- condition_operator.go
- condition_type.go
- condition_value_type.go
- font_charset.go
- font_effect.go
- font_family.go
- font_scheme.go
- font_underline.go
- gradient_type.go
- helpers.go
- icon_set_type.go
- objects.go
- pattern_type.go
- ref.go
- ref_list.go
- text.go
- time_period.go
- update_links.go
- visibility.go