strings: simplify Builder (#10263)

This commit is contained in:
Delyan Angelov 2021-05-31 14:21:06 +03:00 committed by GitHub
parent 8990114b4b
commit eac1e25c5d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 65 additions and 76 deletions

View file

@ -13,11 +13,11 @@ mut:
is_attribute bool
opened_code_type string
line_count int
lexeme_builder strings.Builder = strings.Builder{}
lexeme_builder strings.Builder = strings.new_builder(100)
code_tags map[string]bool = map{
'script': true
'style': true
}
'script': true
'style': true
}
}
// Parser is responsible for reading the HTML strings and converting them into a `DocumentObjectModel`.