Versions in this module Expand all Collapse all v1 v1.0.0 Jun 6, 2019 Changes in this version + const DefaultHTMLOptions + const HTMLParseCompact + const HTMLParseIgnoreEnc + const HTMLParseNoBlanks + const HTMLParseNoDefDTD + const HTMLParseNoError + const HTMLParseNoImplied + const HTMLParseNoNet + const HTMLParseNoWarning + const HTMLParsePedantic + const HTMLParseRecover + var ErrMalformedXML = errors.New("malformed XML") + type Ctxt struct + func NewCtxt(s string, o Option) (*Ctxt, error) + func (ctx *Ctxt) Free() error + func (ctx Ctxt) Parse() error + func (ctx Ctxt) Pointer() uintptr + type HTMLOption int + type Option int + const XMLParseBigLines + const XMLParseCompact + const XMLParseDTDAttr + const XMLParseDTDLoad + const XMLParseDTDValid + const XMLParseEmptyOption + const XMLParseHuge + const XMLParseIgnoreEnc + const XMLParseMax + const XMLParseNoBaseFix + const XMLParseNoBlanks + const XMLParseNoCDATA + const XMLParseNoDict + const XMLParseNoEnt + const XMLParseNoError + const XMLParseNoNet + const XMLParseNoWarning + const XMLParseNoXIncNode + const XMLParseNsclean + const XMLParseOld10 + const XMLParseOldSAX + const XMLParsePedantic + const XMLParseRecover + const XMLParseSAX1 + const XMLParseXInclude + func (o *Option) Set(options ...Option) + func (o Option) String() string + type Parser struct + Options Option + func New(opts ...Option) *Parser + func (p *Parser) Parse(buf []byte) (types.Document, error) + func (p *Parser) ParseReader(in io.Reader) (types.Document, error) + func (p *Parser) ParseString(s string) (types.Document, error)