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

后端 未结 5 743
醉话见心
醉话见心 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

    This answer is outdated.

    This is covered in the golang wiki:

    https://code.google.com/p/go-wiki/wiki/InstallingExp

    % cd $GOPATH/src
    % hg clone https://code.google.com/p/go go-exp
    requesting all changes
    adding changesets
    adding manifests
    adding file changes
    added 13323 changesets with 50185 changes to 7251 files (+5 heads)
    updating to branch default
    3464 files updated, 0 files merged, 0 files removed, 0 files unresolved
    % mv go-exp/src/pkg/exp .
    % rm -rf go-exp
    % go install exp/...
    

    Then, to use it:

    import "exp/proxy"
    

    I tried this a few months ago and it worked pretty well. Also, when I ran go install ... I limited it to only the package I was interested in: go install exp/html (if I recall, correctly).

提交回复
热议问题