編譯前看下
arm-linux-gnueabihf-gcc -fuse-ld=gold -Wl,--version
是不是支持gold 連接 ,如果不支持,就得更換編譯器了。gcc-7 的應該就沒有問題
因爲go just only support the gold linker!
export GOARCH=arm
export GOOS="linux"
export GOARM=6 #armv6, armv7 armv8....
export CGO_ENABLED=1
export CC=arm-linux-gnueabi-gcc
go build target
edged-memory-capacity-bytes: It is the capacity of memory capacity of edge node which is allocatable to pods that will be scheduled on the node.