Tuesday, September 6, 2016

golang

Go does not have classes. However, you can define methods on types.

go f(x,y,z)

The evaluation of f, x, y, and z happens in the current goroutine(just evaluation of f,x,y,z)


and the execution of f happens in the new goroutine(execution f).



  • $GOPATH 默认采用和 $GOROOT 一样的值,但从 Go 1.1 版本开始,你必须修改为其它路径。它可以包含多个包含 Go 语言源码文件、包文件和可执行文件的路径,而这些路径下又必须分别包含三个规定的目录:srcpkg 和 bin,这三个目录分别用于存放源码文件、包文件和可执行文件。

how to debug gofabric8
clone fabric8 to $GOPATH/src/github.com/fabric8io/gofabric8

$git clone git@github.com:fabric8io/gofabric8.git         $GOPATH/src/github.com/fabric8io/gofabric8
$make

$go get github.com/derekparker/delve/cmd/dlv
$export PATH=$GOPATH/bin:$PATH
$dlv debug
(dlv) break main.main

command-line arguments for run/debug

liteide:  build config ->TARGETARGS

https://github.com/visualfc/liteide/issues/67

No comments:

Post a Comment