Advertisement

[2nd of series ABE] Installation of “GoFE“ and Usage of ABE

阅读量:

Abstract

This blog is going to install the Golang encryption library named “GoFE”.

1. Install of “GoFE”

First, download and build the library by running the following command,

复制代码
    t716@host01:~$
    $ go get -u -t github.com/fentec-project/gofe/...

**Second, **to make sure the library works as expected, we have a double-check,

复制代码
    $ cd $GOPATH/src/github.com/fentec-project/gofe
    $ go test -v ./...

2. Usage of “GoFE”

Our project is going to make use of “GoFE”.

First, we prepare an example named “abe1.go” as follows,

复制代码
    $ cd $HOME/joe/abe
    $ vi [abe1.go](https://gist.github.com/7df4088b4b1871e26d3c5cf693043fbf#file-abe1-go)
    $ vi [go.mod](https://gist.github.com/6f865d677d77de1826806abc1dde0a4f#file-go-mod)

Second, we build the “abe1.go” example,

复制代码
    $ go build -o abe1 abe1.go
    $ ./abe1

外部链接中的图片无法正常上传,请检查目标网站是否有防盗链设置并尝试重新上传

Reference

[1. GoFE Source Code] https://github.com/fentec-project/gofe

[2. GoFE Document] https://github.com/fentec-project/gofe

GoFE Blog文章

全部评论 (0)

还没有任何评论哟~