Skip to content

Instantly share code, notes, and snippets.

Avatar

mozhata mozhata

View GitHub Profile
@mozhata
mozhata / gist:d219d6b19465f48e1951573a71436b1f
Created Jan 8, 2019
archlinux 安装xlearn 报cmake未安装
View gist:d219d6b19465f48e1951573a71436b1f
## 环境:
基础docker镜像:
base/archlinux:2019.01.01
```
[root@aa1890dac708 xlearn-0.40a1]# uname -a
Linux aa1890dac708 4.4.0-127-generic #153-Ubuntu SMP Sat May 19 10:58:46 UTC 2018 x86_64 GNU/Linux
[root@aa1890dac708 xlearn-0.40a1]# cat /proc/version
Linux version 4.4.0-127-generic (buildd@lcy01-amd64-023) (gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.9) ) #153-Ubuntu SMP Sat May 19 10:58:46 UTC 2018
```
@mozhata
mozhata / gist:61d11bbcdbf80e984c83
Created Mar 14, 2016
golang怎样通过http获取json数据?
View gist:61d11bbcdbf80e984c83
我发现http包似乎不能接受结构比较复杂的json
比如有一json数据大概是这个样子:
```
{
"links": [
{
"text": {
"zh-cn": "百度",
"en-us": "baidu"
},
You can’t perform that action at this time.