HTTP://WWW.GO.CD/DOCUMENTATION/USER/CURRENTHTTP://WWW.GO.CD/IMAGES/HOME-IMAGE1.PNGGOCD is ThoughtWorks, Inc. Open source continuous distribution of open source packages. They are referred to as go, but the name is easily ambiguous with the go language, so it is estimated that direct search go will not be found. GOCD's Power:-control task granularity and relevancy with Pipelinegroup,pipeline,stage,job,task tiered tiering-powerful users, role systems-go-server
This is a creation in
Article, where the information may have evolved or changed.
First of all
Read Https://github.com/astaxie/build-web-application-with-golang/blob/master/1.1.mdRead Http://code.google.com/p/golang-china/wiki/Install at the same time
To download go1.0.3.linux-amd64.tar.gz, execute the following command sequentially:sudo mkdir/opt/googlesudo tar zxvf go1.0.3.linux-amd64.tar.gz-c/opt/googleVI ~/.BASHRCJoinExport Gopath= $HOME/goExport Goroot=/opt/google/goExport GOARCH=AMD64Exp
solutions[1] libprotoc.so.17:cannot open Shared object file:no such file or directory
bjlvxin:~/下载/protobuf-3.6.1$ protoc --versionprotoc: error while loading shared libraries: libprotoc.so.17: cannot open shared object file: No such file or directory解决方案:执行:export LD_LIBRARY_PATH=/usr/local/libbjlvxin:~/下载/protobuf-3.6.1$ export LD_LIBRARY_PATH=/usr/local/lib/ bjlvxin:~/下载/protobuf-3.6.1$ protoc --versionlibprotoc 3.6.1
2. Obtain the PROTOBUF plug-in protoc-gen-go provided by GOPROTOBUF (pl
This is a creation in
Article, where the information may have evolved or changed.
Installing GOPROTOBUF
1. from Https://github.com/google/protobuf/releases get Protobuf compiler Protoc (downloadable to windows
wget https:// github.com/google/protobuf/releases/download/v2.6.1/protobuf-2.6.1.tar.gz tar zxvf protobuf -2.6 . Span style= "Color:rgb (128,0,128)" >1 .tar.gzcd protobuf -2.6 . 1 /configuremakemake installprotoc -H
2. get Goprotobuf protobuf provided compiler plugin Proto
Some of the frequently used commands in Linux1. LS list: Displays all the files in the current folderLs-a: Show All FilesLs-l: Display in detailYou can: Ls-la/-al/-a-l/-l-a in these ways, the meaning is: Show all the file details2. Man: Search man manual for help informationMore common ways:Man 1 ls:1 means the query is a Linux command, here is the use of the query ls commandMan 2 xx:2 indicates that the query is a Linux APIMan 3 Xx:3 means C library function is queried (e.g. Man 3 strlen)3. CD
is make lable, to avoid the current folder also has a file called lable.Pseudo target eg:. Phony lable. Phony avoid the same nameLable:RM *.O The terminal uses make Labe, and the action is to delete all the. o files.General form of eg:MAIN.O:MAIN.C Defs.hCc-c MAIN.C#make最后生成 the MAIN.O file relies on main.c defs.h two files, cc-c MAIN.C executes the executable file main.c to compile. 3.4The first target in the makefile is used as its default target. How
1. Enter the fabric source directory/ho
command is make lable, to avoid the current folder also has a file called lable.伪目标eg: .PHONY lable.PHONY避免同名 lable: rm *.oThe terminal uses make Labe, and the action is to delete all the. o files.一般形式的eg : main.o : main.c defs.h cc -c main.c #make最后生成 main.o文件依赖于main.c defs.h两个文件,cc -c main.c执行可执行文件main.c进行编译.3.4The first target in the makefile is used as its default target.
How
1. Enter the fabric source directory/home/gopath/src/hyperledger/fabric. and add Gopath environment variables, be su
This is a creation in
Article, where the information may have evolved or changed.
wget https://github.com/google/protobuf/releases/download/v2.6.1/protobuf-2.6.1.tar.gzTar zxvf protobuf-2.6.1.tar.gzcd protobuf-2.6.1./configuremakemake Installprotoc-h
Go get github.com/golang/protobuf/protoc-gen-gocd Github.com/golang/protobuf/protoc-gen-gogo buildgo installvi/etc/ Profile add $gopath/bin to the environment variable source profile
Go get github.com/gol
This is a creation in
Article, where the information may have evolved or changed.
Installing GOPROTOBUF
1. from Https://github.com/google/protobuf/releases get Protobuf compiler Protoc (downloadable to windows
wget https:// github.com/google/protobuf/releases/download/v2.6.1/protobuf-2.6.1.tar.gz tar zxvf protobuf -2.6 . Span style= "Color:rgb (128,0,128)" >1 .tar.gzcd protobuf -2.6 . 1 /configuremakemake installprotoc -H
2. get Goprotobuf protobuf provided compiler plugin Proto
Some operations under the doscommand, The doscommand operation
The biggest difference between DOS and Windows lies in the doscommand operation. Therefore, you need to remember a large number of commands and their format usage methods. doscommands include internal commands and external commands.The COMMAND is loaded and resident memory with the COMMAND. COM started each time, while the external COMMAND is a separate executable file. Remember that internal commands can enableUse,Th
-rf flatbuffermkdir -p flatbuffer/javamkdir -p flatbuffer/gocd flatbuffer/javaflatc -j ../SimulationEvent.fbscd ..cd goflatc -g ../SimulationEvent.fbs
Updating the script is an example and suggests modifying it yourself ~
Use in Golang projects
Installing the Golang Support package
go get -u -v google/flatbuffers/go
Golang Official use of flatbuffers documentation http://google.github.io/flatbuffers/index.html
or use it as an example.
Https://github.
This is a creation in
Article, where the information may have evolved or changed.
Installing GOPROTOBUF
1. get protobuf compiler Protoc from https://github.com/google/protobuf/releases( binary version available for download to Windows
wget Https://github.com/google/protobuf/releases/download/v2.6.1/protobuf-2.6.1.tar.gztar ZXVF PROTOBUF-2.6.1.TAR.GZCD Protobuf-2.6.1./configuremakemake installprotoc-h
2. get Goprotobuf Protobuf provided compiler plug-in Protoc-gen-go should be added
This is a creation in
Article, where the information may have evolved or changed.
Installing GOPROTOBUF
1. get protobuf compiler Protoc from https://github.com/google/protobuf/releases( binary version available for download to Windows
wget https://github.com/google/protobuf/releases/download/v2.6.1/protobuf-2.6.1.tar.gztar ZXVF protobuf-2.6. 1 . TAR.GZCD protobuf-2.6. 1 . /configuremakemake Installprotoc -H
2. obtain the protobuf compiler plug-in protoc-gen-go provided by Goprotobuf(place
This is a creation in
Article, where the information may have evolved or changed.
Installing GOPROTOBUF
1. from Https://github.com/google/protobuf/releases get Protobuf compiler Protoc (downloadable to Windows
wget Https://github.com/google/protobuf/releases/download/v2.6.1/protobuf-2.6.1.tar.gztar ZXVF PROTOBUF-2.6.1.TAR.GZCD Protobuf-2.6.1./configuremakemake installprotoc-h
NBSP;
2. get Goprotobuf Protobuf provided plug-in Protoc-gen-go (placed in $GOPATH/bin)
protoc us
/extensions . Then clone the repo somewhere else on your machine, run and npm install open a development instance of Code.rm -rf ~/.vscode/extensions/lukehoban.Gocd ~git clone https://github.com/Microsoft/vscode-gocd vscode-gonpm installcode .You can now go to the Debug viewlet and select then hit Launch Extension run ( F5 ).[Extension Development Host]in the instance, open your Gopath folder.You can now hit breakpoints and step through the extension.
]# zkserver.sh statusJMX enabled by defaultUsing config:/usr/local/zookeeper/bin/. /conf/zoo.cfgMode:leaderYou can see that the first start is leader, and the other two are followerSet boot upVim/etc/rc.local/usr/local/zookeeper/bin/zkserver.sh startSetting environment variablesVim/etc/profileExport Zookeeperpath=/usr/local/zookeeperExport Goroot=/usr/local/goExport Codispath=/usr/local/codisExport path= $PATH: $GOROOT/bin: $ZOOKEEPERPATH/bin: $CODISPATH/binSource/etc/profileSecond, install Codi
The advantages of the go language in development efficiency and operational efficiency have favored many people, so there is a tendency to turn to the development of go language.The following describes the development environment configuration in Mac OS x Golang.1. Install BrewBrew is a package management system developed by Ruby under a Mac, and its official website is http://brew.sh. You just have to do it in your terminal." $ (Curl-fssl https://raw.githubusercontent.com/Homebrew/install/maste
Pre-installation configuration
Still the same, that is the installation of various support libraries.Debian
Apt-get UpdateApt-get install-y redis-server git
Centos
Yum install-y redis-server git
Install GO Environment
ubuntu/debian– Installation Golang Installation Tutorial: https://www.bxl.me/9531.htmlCentOS 6– Install the Go Language installation tutorial: https://www.bxl.me/9525.htmlInstall Ss-go-mu
Now that we have all deployed the go environment, what are we using git?Note here that
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.