Home >Backend Development >Golang >How Can I Recover the Removed `exp/` Package After Go1's Release?
Recovering exp/ after Go1
With Go1's release, the exp/ code has been removed. However, if you wish to retrieve exp/, there are a few methods available.
One option would be to utilize a symbolic link from your GOPATH to the source code repository. By executing the following commands:
cd $HOME/repo hg clone https://go.googlecode.com/hg/go cd $HOME/go/src ln -s $HOME/repo/go/src/pkg/exp .
You can then install the exp/html library via:
go get code.google.com/p/go/src/pkg/exp/html
For a more comprehensive HTML parser, consider the go-html-transform library, which offers HTML5 parsing, CSS selector-based scraping, and transformation.
Note: The recommended approach is to utilize the go get command, as it offers a convenient method of installing the library. However, if you encounter difficulties, you may consider manually installing it by cloning the Go source code repository.
The above is the detailed content of How Can I Recover the Removed `exp/` Package After Go1's Release?. For more information, please follow other related articles on the PHP Chinese website!