Any smart method to get exp/html back after Go1?

后端 未结 5 740
醉话见心
醉话见心 2020-12-10 08:33

I\'ve installed the Go release version as root. Go1 removed all exp/ code.

Is there smart method to get exp/* back after Go1? (I mean how to install in my local GOPA

5条回答
  •  盖世英雄少女心
    2020-12-10 08:59

    Note: with go 1.4 (Q4, 2014), the url for that exp package will change (again):

    code.google.com/p/go.exp => golang.org/x/exp
    

    That means now:

    go get golang.org/x/exp
    

    See "Go 1.4 subrepo renaming".

    Regarding the html package, it is in net/html, so this will become (as commented by andybalholm):

    go get golang.org/x/net/html
    

提交回复
热议问题