Home >Backend Development >Golang >How Can I Recover the Removed `exp/` Package After Go1's Release?

How Can I Recover the Removed `exp/` Package After Go1's Release?

Patricia Arquette
Patricia ArquetteOriginal
2024-12-10 14:07:18692browse

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn