11 2016 档案

dynamoDb 使用
摘要:如果写入时候结构体为: type Item struct { DeviceId string `dynamo:"deviceid"` Play int `dynamo:"play"` } 写入结果后修改DeviceId 为DeviceIdAAA,那么利用Item.DeviceIdAAA将获取不到de 阅读全文

posted @ 2016-11-22 13:56 iokde.com 阅读(404) 评论(0) 推荐(0)

dynamoDb aws config aws_access_key_id aws_secret_access_key golang
摘要:how to set aws_access_key_id 参考: https://github.com/search?q=awscfg.WithCredentials&type=Code&utf8=%E2%9C%93 https://github.com/pr8kerl/cloudwatcher/b 阅读全文

posted @ 2016-11-22 11:45 iokde.com 阅读(355) 评论(0) 推荐(0)

golang print struct with key
摘要:https://play.golang.org/p/YMfpuluzef 判断结构体是否为空 打印带attribute(key) 的结构体 阅读全文

posted @ 2016-11-22 11:42 iokde.com 阅读(1005) 评论(0) 推荐(1)

dynamodb update incr The provided expression refers to an attribute that does not exist in the item
摘要:update_err: ValidationException: The provided expression refers to an attribute that does not exist in the item status code: 400, request id: LNC41OG6 阅读全文

posted @ 2016-11-20 18:59 iokde.com 阅读(991) 评论(0) 推荐(0)

dynamodb golang query one Item
摘要:golang dynamodb query oneItem and unmarshal to object 阅读全文

posted @ 2016-11-20 13:30 iokde.com 阅读(1511) 评论(0) 推荐(0)

golang DynamoDB sdk AccessDeniedException
摘要:golang调用aws sdk时候提示: AccessDeniedException: User: arn:aws:sts::818539432014:assumed-role/bj-develop/i-787f1cdc is not authorized to perform: dynamodb: 阅读全文

posted @ 2016-11-18 19:55 iokde.com 阅读(392) 评论(0) 推荐(0)

centos 下pip 安装snappy 系列问题记录
摘要:试用sud o pip提示找不到pip命令,不加sudo可以找到,这时候需要使用whereis 去看pip命令的路径 sudo + pip完整路径即可 安装python snappy 失败提示: snappymodule.cc:28:20: fatal error: Python.h: No suc 阅读全文

posted @ 2016-11-13 14:38 iokde.com 阅读(1234) 评论(0) 推荐(0)

golang map getkeys
摘要:golang 获取map的keys 阅读全文

posted @ 2016-11-07 13:51 iokde.com 阅读(2146) 评论(0) 推荐(0)

golang调用c++文件
摘要:简要步骤: 1,将c++ 的方法提取到头文件.h中( ) 2,编译cc(c++)文件为动态链接库so文件 gcc -fPIC -shared hello.c -o libhello.so 3,将头文件放入include目录 .so放入lib目录 4,go程序中指定 CFLAGS 和 LDFLAGS 阅读全文

posted @ 2016-11-02 19:03 iokde.com 阅读(9761) 评论(2) 推荐(0)

导航