mirror of
https://github.com/foomo/walker.git
synced 2026-11-29 08:21:41 +00:00
27 lines
419 B
Go
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
|
|
}
|