The Cascadia package implements CSS selectors for use with the parse trees produced by the html package.
To test CSS selectors without writing Go code, check out cascadia the command line tool, a thin wrapper around this package.