GNU Build System
The GNU Build System, also known as the Autotools, is a suite of programming tools designed to assist in making source code packages portable to many Unix-like systems.
The GNU Build System, also known as the Autotools, is a suite of programming tools designed to assist in making source code packages portable to many Unix-like systems.
一切操作的前提是服务的高可用性,高效性。
yum -y install docker |
when I deploy some application on linux platform I found some application can run
in file manager through double click, but my application can’t. So I do some research.
app has mime type:
that x-executable file manager recognize it you can double click to run it.
but x-sharedlib has some security advantage, so x-sharedlib is recommended
you can use file --mime-type app see app’s mime type, also file app is working too.
gcc now defaults to building with PIE (Position Independent Executable) enabled on x86 Debian systems for security reasons.
The behavior is occurring because newer ubuntu distros set GCC default link flag -pie,
which marks e_type as ET_DYN on the binary file. Consequently, the Operating System recognizes as Shared Library.
-pie allows for some extra security protections that are fundamentally incompatible with -no-pie.
Qt project:
QMAKE_LFLAGS += -no-pie
Rocksdb is a better Leveldb
目前支持以下功能
Use POST Request
http://47.100.193.211:49911/api/v1.0/help |
{
“ErrorMsg”: “opcode not found”
}
http://47.100.193.211:49911/api/v1.0/tx2json/
{“coinType”:”primecoin”,”tx”:”01000000010000000000000000000000000000000000000000000000000000000000000000ffffffff0f03bad82a02780200062f503253482fffffffff0140b1b02b00000000232103a0c8d5d706a7f1d7b19ac2dcc25905d5fbb77a3e65a5b5160be972955593e3efac00000000”}
support coin type: primecoin|bitcoin
return
{ |
http://47.100.193.211:49911/api/v1.0/l2b/
{“data”:”123456”}
return
{"data":"563412"} |
There are currently three address formats in use:
P2PKH which begin with the number 1, eg: 1BvBMSEYstWetqTFn5Au4m4GFg7xJaNVN2.
P2SH type starting with the number 3, eg: 3J98t1WpEZ73CNmQviecrnyiWrnqRhWNLy.
Bech32 type starting with bc1, eg: bc1qar0srrr7xfkvy5l643lydnw9re59gtzzwf5mdq.
Addresses are not intended to be used more than once, and doing so has numerous problems associated. See the dedicated article on address reuse for more details.
cannot import main package.
you can put code in one package for other package use.
go get -u github.com/golang/dep/cmd/dep
下载二进制文件
https://github.com/golang/dep/releases
将dep-windows-amd64.exe放入GOPATH/bin下,修改名称为dep
预先添加到vendor中
dep ensure -add github.com/foo/bar github.com/baz/quux
dep ensure -update
四种情况:工程中引入包、移除包、Gopkg.toml规则修改、不确定情况
dep ensure
查看状态
运行
dep status
结果解释
CONSTRAINT为Gopkg.toml中限定的版本;
VERSION为当前vendor中的版本;
REVISION为当前vendor中的修订号;
LATEST为CONSTRAINT限定下github中能满足要求的最新版本。
修改限定版本并同步
修改Gopkg.toml中的CONSTRAINT,若使得LATEST低于当前vendor中的版本,则运行dep ensure后,vendor中的版本降低到能满足要求的最新版本;
若使得LATEST高于vendor中的版本,则运行dep ensure后,vendor中的版本不变,可使用dep ensure -update更新vendor到LATEST版本。
作者:gisxiaowei
链接:https://www.jianshu.com/p/e3c9f9039542
来源:简书
简书著作权归作者所有,任何形式的转载都请联系作者获得授权并注明出处。
https://github.com/antonholmquist/jason
must be predefined a struct.
var s Serverslice |
type response2 struct { |
Go json.Decoder Considered Harmful
short answer is :
Do not use json.Decoder if you are not dealing with JSON streaming.
Use json.Unmarshal:
package main |
// Marshal the map into a JSON string. |