Files
walker/htmlschema/htmlschema.go
T
2020-04-30 14:34:50 +02:00

27 lines
419 B
Go

package htmlschema
type Attribute struct {
Name string
Value string
Rules map[string]AttributeRule
}
type Element struct {
Name string
Content string
MinOccurence int
Score int
MaxOccurence int
Children []*Element
Source string
Attributes []*Attribute
MinLength int
MaxLength int
Selector string
}
type Schema struct {
Name string
Elements []*Element
}