{"id":50676,"date":"2018-05-09T00:00:00","date_gmt":"2018-05-09T07:00:00","guid":{"rendered":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/%e6%9c%aa%e5%88%86%e9%a1%9e\/getting-started-with-griddbs-golang-client\/"},"modified":"2025-11-14T07:53:41","modified_gmt":"2025-11-14T15:53:41","slug":"getting-started-with-griddbs-golang-client","status":"publish","type":"post","link":"https:\/\/www.griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/getting-started-with-griddbs-golang-client\/","title":{"rendered":"GridDB\u306eGo\u8a00\u8a9e Client\u5165\u9580"},"content":{"rendered":"<h2 id=\"intro\">\u306f\u3058\u3081\u306b<\/h2>\n<p>GridDB\u306f\u3001Google\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9eGo \u7528\u306e<i>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30b3\u30cd\u30af\u30bf<\/i>\u3092\u30ea\u30ea\u30fc\u30b9\u3057\u307e\u3057\u305f\u3002 <a href=\"https:\/\/github.com\/griddb\/python_client\" title=\"GridDB Python GitHub\"> Python <\/a>\u3084<a href-=\"\" \"https:=\"\" github.com=\"\" griddb=\"\" griddb_client\"=\"\">Ruby <\/a>\u306e\u3088\u3046\u306b\u3001 <a href=\"http:\/\/www.swig.org\/\" title=\"SWIG website\"> SWIG <\/a>\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u7528\u3057\u3066\u69cb\u7bc9\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u30b3\u30cd\u30af\u30bf\u306f\u3001Go <b>1.9\u4ee5\u4e0a<\/b>\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u304a\u308a\u3001CentOS\u30d0\u30fc\u30b8\u30e7\u30f3<b>6\u304a\u3088\u30737<\/b>\u3067\u52d5\u4f5c\u3057\u307e\u3059\u3002<br \/>\n<a href=\"https:\/\/golang.org\/\" title=\"golang official website\"> Go\u8a00\u8a9e <\/a>\u306f\u3001Google \u306b\u3088\u3063\u3066\u958b\u767a\u3055\u308c\u305f\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u3067\u3059\u3002\u4e26\u5217\u51e6\u7406\u3068\u4e26\u884c\u51e6\u7406\u306e\u305f\u3081\u306b\u3001<a href=\"https:\/\/tour.golang.org\/concurrency\/1\" title=\"Concurrency in goroutines\"> goroutines <\/a>\u3068\u547c\u3070\u308c\u308b\u8efd\u91cf\u30b9\u30ec\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u6700\u9069\u5316\u3055\u308c\u3066\u3044\u307e\u3059\u3002 \u3053\u308c\u306b\u3088\u308a\u3001Go\u8a00\u8a9e\u3092\u3001GridDB\u306e\u3088\u3046\u306a\u9ad8\u901f\u30e1\u30e2\u30ea\u5185\u306e\u6307\u5411\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3068\u7d44\u307f\u5408\u308f\u305b\u305f\u9ad8\u6027\u80fd\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u306b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u30d6\u30ed\u30b0\u3067\u306f\u3001<b>Go client<\/b>\u69cb\u7bc9\u306e\u305f\u3081\u306eGridDB\u7528\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30b3\u30cd\u30af\u30bf\u306e\u8a2d\u5b9a\u3068\u30c6\u30b9\u30c8\u306b\u95a2\u3059\u308b\u4e00\u822c\u7684\u306a\u624b\u9806\u3092\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<style>\nul {<br \/>\n    padding-left: 36px;<br \/>\n}<\/p>\n<p>.toc_container {<br \/>\n    background: blue none repeat scroll 0 0 !important;<br \/>\n    border: 1px solid #aaa !important;<br \/>\n    display: table !important;<br \/>\n    font-size: 95%;<br \/>\n    margin-bottom: 1em;<br \/>\n    padding: 20px;<br \/>\n    width: auto;<br \/>\n}<\/p>\n<p>.toc_title {<br \/>\n    font-weight: 700;<br \/>\n    text-align: center;<br \/>\n}<\/p>\n<p>.toc_container li, .toc_container ul, .toc_container ul li, .toc_container ol li{<br \/>\n    list-style: outside none none !important;<br \/>\n}<br \/>\n<\/style>\n<div id=\"toc-block\" style=\"background: #f9f9f9 none repeat scroll 0 0;border: 1px solid #aaa; padding: 20px; width: auto; display: table;margin-bottom: 1em;\">\n<h5 id=\"toc\">Table of Contents<\/h5>\n<div class=\"toc_container\">\n<ul id=\"toc-list\" style=\"list-style-type: none !important;\">\n<li>1 &nbsp;&nbsp;&nbsp;<a href=\"#setup-go\">\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3078\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\uff06\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7<\/a><\/li>\n<li style=\"list-style: outside none none !important;\">\n<div class=\"inner-list\">\n<ul style=\"list-style-type: none !important; padding-left: 9px;\">\n<li>1.1 <a href=\"#possible-build-issues\"> Go client\u306e\u69cb\u7bc9\u6642\u306b\u8d77\u3053\u308a\u3046\u308b\u554f\u984c<\/a><\/li>\n<\/ul>\n<\/div>\n<\/li>\n<li>2 &nbsp;&nbsp;&nbsp;<a href=\"#connecting-to-griddb\"> Go\u8a00\u8a9e\u3092\u4f7f\u3063\u3066GridDB\u306b\u63a5\u7d9a\u3059\u308b<\/a><\/li>\n<li>3 &nbsp;&nbsp;&nbsp;<a href=\"#schemas-containers\">\u30b9\u30ad\u30fc\u30de\u3068\u30b3\u30f3\u30c6\u30ca\u306e\u4f5c\u6210<\/a><\/li>\n<li>4 &nbsp;&nbsp;&nbsp;<a href=\"#queries\">\u30c7\u30fc\u30bf\u306e\u30af\u30a8\u30ea\u3068\u53d6\u5f97<\/a><\/li>\n<li style=\"list-style: outside none none !important;\">\n<div class=\"inner-list\">\n<ul style=\"list-style-type: none !important; padding-left: 9px;\">\n<li>4.1 <a href=\"#standard-query\">\u6a19\u6e96TQL\u30af\u30a8\u30ea<\/a><\/li>\n<li>4.2 <a href=\"#aggregation-tql\">\u96c6\u8a08TQL<\/a><\/li>\n<\/ul>\n<\/div>\n<\/li>\n<li>5 &nbsp;&nbsp;&nbsp;<a href=\"#timestamp-and-blob-data\">\u30bf\u30a4\u30e0\u30b9\u30bf\u30f3\u30d7\u3068\u30d0\u30a4\u30ca\u30ea\u30c7\u30fc\u30bf\u306e\u51e6\u7406<\/a><\/li>\n<li style=\"list-style: outside none none !important;\">\n<div class=\"inner-list\">\n<ul style=\"list-style-type: none !important; padding-left: 9px;\">\n<li>5.1 <a href=\"#timestamp-type-data\">\u30bf\u30a4\u30e0\u30b9\u30bf\u30f3\u30d7\u30c7\u30fc\u30bf<\/a><\/li>\n<li>5.2 <a href=\"#binary-data\">\u30d0\u30a4\u30ca\u30ea\u307e\u305f\u306fBlob\u30c7\u30fc\u30bf<\/a><\/li>\n<\/ul>\n<\/div>\n<\/li>\n<li>6 &nbsp;&nbsp;&nbsp;<a href=\"#reference\">\u53c2\u7167<\/a><\/li>\n<li style=\"list-style: outside none none !important;\">\n<div class=\"inner-list\">\n<ul style=\"list-style-type: none !important; padding-left: 9px;\">\n<li>6.1 <a href=\"#source-code\">\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9<\/a><\/li>\n<\/ul>\n<\/div>\n<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<h3 id=\"setup-go\">\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3078\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\uff06\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7<\/h3>\n<p>\u307e\u305a\u306fGo API\u306eGithub\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u30af\u30ed\u30fc\u30f3\u4f5c\u6210\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"prettyprint\">$ git clone https:\/\/github.com\/griddb\/go_client\n<\/pre>\n<p>\u30b7\u30b9\u30c6\u30e0\u306bGo client\u3092\u69cb\u7bc9\u3059\u308b\u306b\u306f\u3001<a href=\"https:\/\/github.com\/griddb\/c_client\" title=\"CclientGithub Page\"> GridDB C client<\/a>\u3092\u69cb\u7bc9\u3057\u3001 \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002 C client\u306e\u8a2d\u5b9a\u3068\u30c6\u30b9\u30c8\u306e\u65b9\u6cd5\u306b\u3064\u3044\u3066\u306f\u3001\u3053\u306e<a href=\"https:\/\/griddb.net\/ja\/blog\/using-griddbs-cpythonruby-apis\/#c-intro\">\u30d6\u30ed\u30b0\u8a18\u4e8b<\/a>\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<ul id=\"go-version-note\">\n<li>\n<b>\u6ce8\u610f\uff1a<\/b><code> make <\/code>\u3057\u3066Go client\u3092\u30b7\u30b9\u30c6\u30e0\u306b\u69cb\u7bc9\u3059\u308b\u524d\u306b\u3001Go\u8a00\u8a9e <b>\u30d0\u30fc\u30b8\u30e7\u30f31.9\u4ee5\u4e0a<\/b>\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002 Go\u8a00\u8a9e\u30d0\u30fc\u30b8\u30e7\u30f31.9\u306e\u5165\u624b\u65b9\u6cd5\u3068\u8a2d\u5b9a\u65b9\u6cd5\u306b\u3064\u3044\u3066\u306f\u3001\u3053\u306e<a href=\"https:\/\/5wire.co.uk\/install-go-golang-1-9-centos-7\/\" title=\"Installing Go 1.9 on CentOS\">\u30da\u30fc\u30b8<\/a>\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/li>\n<\/ul>\n<p>Github\u304b\u3089\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u5165\u624b\u3057\u305f\u3089\u3001Go Client\u306e<a href=\"https:\/\/github.com\/griddb\/go_client\" title=\"Go client Github repository\">Github page<\/a>\u306b\u5f93\u3063\u3066\u9032\u3081\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h5 id=\"possible-build-issues\"> Go client\u306e\u69cb\u7bc9\u6642\u306b\u8d77\u3053\u308a\u3046\u308b\u554f\u984c<\/h5>\n<p>\u5834\u5408\u306b\u3088\u3063\u3066\u306f\u3001Go client\u30d1\u30c3\u30b1\u30fc\u30b8\u3067<code> make <\/code>\u3092\u767a\u884c\u3059\u308b\u3068\u304d\u306b\u6b21\u306e\u3088\u3046\u306a\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3059\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"prettyprint\">go install github.com\/griddb\/go_client\ncan't load package: package github.com\/griddb\/go_client: \n  cannot find package \"github.com\/griddb\/go_client\"\n<\/pre>\n<p>\u3053\u308c\u306f\u3001<code> GOPATH <\/code>\u307e\u305f\u306f<code> GODEBUG <\/code>\u74b0\u5883\u5909\u6570\u306e\u554f\u984c\u304c\u539f\u56e0\u3067\u3042\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002 \u4fee\u6b63\u3059\u308b\u306b\u306f\u3001GridDB Go client\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u30af\u30ea\u30fc\u30f3\u30a2\u30c3\u30d7\u3057\u3066\u304b\u3089\u3001\u9069\u5207\u306a\u5024\u306b\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"prettyprint\">$ make clean\n$ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:&lt;Path to GridDB c_client bin\/ directory&gt;\n$ export GOPATH=$GOPATH:&lt;Path to go_client directory&gt;\n$ export GODEBUG=cgocheck=0\n$ make\n<\/pre>\n<p><b>NOTE:<\/b> \u4e88\u671f\u3057\u306a\u3044\u5b9f\u884c\u6642\u30a8\u30e9\u30fc\u3092\u9632\u3050\u305f\u3081\u3001\u5e38\u306b<code> GODEBUG <\/code>\u3092<code> cgocheck = 0 <\/code>\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h3 id=\"connecting-to-griddb\"> Go\u8a00\u8a9e\u3092\u4f7f\u3063\u3066GridDB\u306b\u63a5\u7d9a\u3059\u308b<\/h3>\n<p>Go\u8a00\u8a9e\u30d7\u30ed\u30b0\u30e9\u30e0\u3067GridDB\u306b\u63a5\u7d9a\u3059\u308b\u5834\u5408\u306f\u3001<code> import statement ( \"github.com\/griddb\/go_client\" )<\/code>\u3092\u4f7f\u7528\u3057\u3066Go API\u3092\u30a4\u30f3\u30dd\u30fc\u30c8\u3057\u307e\u3059\u3002 Go\u8a00\u8a9e\u306eGridDB\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u540d\u524d\u306f<code> griddb_go <\/code>\u3067\u3059\u3002<\/p>\n<p>\u305d\u3053\u304b\u3089\u3001GridDB\u30e9\u30a4\u30d6\u30e9\u30ea\u304b\u3089<code> StoreFactoryInstance <\/code>\u3092\u53d6\u5f97\u3057\u3001\u305d\u308c\u3092Factory\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306e<code>.GetStore()<\/code>\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3063\u3066GridDB\u30af\u30e9\u30b9\u30bf\u306b\u63a5\u7d9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002 \u3053\u306e\u30e1\u30bd\u30c3\u30c9\u306b\u4e0e\u3048\u308b\u30d1\u30e9\u30e1\u30fc\u30bf\u306f\u3001<code>map[string]interface{}{}<\/code> \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\uff08<i>\u6587\u5b57\u5217\u30ad\u30fc<\/i>\u3092\u6301\u3064<i> HashMap\u307e\u305f\u306fPython dictionary<\/i>\u306b\u76f8\u5f53\uff09\u3067\u3059\u3002\u30ad\u30fc\u306f\u3001GridDB\u306b\u63a5\u7d9a\u3059\u308b\u305f\u3081\u306e\u8a2d\u5b9a\u30d5\u30a3\u30fc\u30eb\u30c9\u3067\u3059\u3002<br \/>\n\u30dd\u30fc\u30c8\u306f<b>\u6574\u6570<\/b>\u3068\u3057\u3066\u6307\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u30db\u30b9\u30c8\u540d\u3084\u30af\u30e9\u30b9\u30bf\u540d\u306a\u3069\u306e\u305d\u306e\u4ed6\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u8a2d\u5b9a\u5024\u306f\u3059\u3079\u3066\u6587\u5b57\u5217\u306b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"prettyprint\">package main\nimport (\n\t\"github.com\/griddb\/go_client\"\n\t\"fmt\"\n\t\"os\"\n\t\"strconv\"\n)\n\nfunc main(){\n\tfactory := griddb_go.StoreFactoryGetInstance() \/\/Get a GridStoreFactory instance\n\n        \/\/The 'notificationPort' value to connect to GridDB must be an integer\n        \/\/when using the StoreFactory.GetStore() method to connect to GridDB\n\n        \/\/Read notification-port from command-line\n        \/\/Parse port reading to integer\n\tport, err := strconv.Atoi(os.Args[2]) \n\n\tif err != nil {\n\t\tfmt.Println(err)\n\t\tos.Exit(2)\n\t}        \n\n        \/\/Connect to GridDB cluster\n        \/\/Note that port must be an integer\n        gridstore := factory.GetStore(map[string]interface{}{\n                \"host\": os.Args[1], \/\/ \"239.0.0.1\"\n                \"port\": os.Args[2], \/\/ 31999\n                \"cluster_name\": os.Args[3], \/\/\"defaultCluster\"\n                \"user\": os.Args[4], \/\/ \"admin\"\n                \"password\": os.Args[5], \/\/ \"admin\"\n                \/\/\"notification_member\": os.Args[6],\n                \/\/\"notification_provide\": os.Args[7],\n        })\n\n        \/\/Close access to GridDB\n        gridstore.Close(0)\n        \/\/Note that you must specify an integer flag when using the .Close() function call\n}\n<\/pre>\n<h3 id=\"schemas-containers\">\u30b9\u30ad\u30fc\u30de\u3068\u30b3\u30f3\u30c6\u30ca\u306e\u4f5c\u6210<\/h3>\n<p>\u30b3\u30f3\u30c6\u30ca\u3068\u884c\u306e\u30b9\u30ad\u30fc\u30de\u306f\u3001Go\u8a00\u8a9e\u306e<a href=\"https:\/\/golang.org\/ref\/spec#Interface_types\" title=\"Documentation on Golang interfaces\">\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9<\/a>\u3092\u4f7f\u3063\u3066\u4f5c\u6210\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u30b3\u30f3\u30c6\u30ca\u306e\u5217\u30bf\u30a4\u30d7\u3092\u30de\u30c3\u30d7\u3059\u308b\u306b\u306f\u3001\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u306e<i> 2\u6b21\u5143\u914d\u5217<\/i>\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002 \u305d\u3053\u304b\u3089<code>StoreFactory.CreateContainerInfo()<\/code>\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u30b3\u30f3\u30c6\u30ca\u30b9\u30ad\u30fc\u30de\uff08<code> ContainerInfo Type <\/code>\uff09\u3092\u4f5c\u6210\u3067\u304d\u307e\u3059\u3002 \u3053\u308c\u3089\u306e<i>\u30b9\u30ad\u30fc\u30de<\/i>\u3092\u4f7f\u7528\u3057\u3066\u633f\u5165\u3059\u308b\u3068\u3001\u30b3\u30f3\u30c6\u30ca\u3092\u4f5c\u6210\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><b>\u884c<\/b>\u306f\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u914d\u5217\uff08<code> [] interface {} <\/code>\uff09\u3068\u3057\u3066\u30e2\u30c7\u30eb\u5316\u3067\u304d\u307e\u3059\u3002 \u884c\u3092\u4f5c\u6210\u3059\u308b\u306b\u306f\u3001\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u914d\u5217\u3092\u4f5c\u6210\u3057\u3001\u5404\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306e\u5024\u3092\u30b3\u30f3\u30c6\u30ca\u306b\u683c\u7d0d\u3059\u308b\u4e88\u5b9a\u306e\u5bfe\u5fdc\u3059\u308b\u578b\u306b\u30de\u30c3\u30d7\u3055\u305b\u307e\u3059\u3002<br \/>\n\u305f\u3068\u3048\u3070\u3001\u30b3\u30f3\u30c6\u30ca\u5185\u30672\u756a\u76ee\u306e\u5217\u306b<code> 'count' <\/code>\u3068\u3044\u3046\u540d\u524d\u306e\u6574\u6570\u304c\u683c\u7d0d\u3055\u308c\u3066\u3044\u308b\u5834\u5408\u3001\u914d\u5217<code>row := []interface{}{\"A_1\",3,true}<\/code>\u306e<i> index 1 <\/i>\u306e\u5024<code>3<\/code>\u306f<code> 'count' <\/code>\u5217\u306b\u30de\u30c3\u30d7\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"prettyprint\">\/\/Container schema for our timeseries container\n\/\/The first column is always the row-key\nrow_schema := [][]interface{}{\n\t\t{\"timestamp\",griddb_go.TYPE_TIMESTAMP},\n\t\t{\"water_temperature\",griddb_go.TYPE_FLOAT},\n\t\t{\"turbidity\",griddb_go.TYPE_FLOAT},\n\t\t{\"depth\",griddb_go.TYPE_FLOAT},\n\t\t{\"wave_height\",griddb_go.TYPE_FLOAT},\n\t\t{\"wave_period\",griddb_go.TYPE_FLOAT},\n\t\t{\"battery_life\",griddb_go.TYPE_FLOAT},\n\t\t{\"beach_name\",griddb_go.TYPE_STRING}}\n\ntimeseries_name := \"water_monitor_ts_2\" \/\/Name for our container\n\/\/Create a container info to use to insert containers into GridDB\ncontainerInfo, err := griddb_go.CreateContainerInfo(timeseries_name,\n                        row_schema,\n                        griddb_go.CONTAINER_TIME_SERIES,\n                        true)\n\ntimeseries := gridstore.PutContainer(containerInfo,false)\n\n\/\/Use an interface array to create and insert rows\nrow := []interface{}{time.Now().UTC(),16.2,1.26,1.514,0.147,4.0,11.7,\"Calumet Beach\"}\n\/\/ You can also initialize an empty row with ( row := make([]interface{},8) )\n\n\/\/Insert row into Timeseries container\nerr = timeseries.Put(row)\n<\/pre>\n<p><b>\u884c\u30ad\u30fc<\/b>\u3092\u4f7f\u7528\u3057\u30b3\u30f3\u30c6\u30ca\u306e<code> .Get\uff08\uff09<\/code>\u30e1\u30bd\u30c3\u30c9\u3092\u547c\u3073\u51fa\u3059\u3053\u3068\u3067\u3001\u7c21\u5358\u306b<b>\u884c<\/b>\u3092\u53d6\u5f97\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002 \u524d\u8ff0\u306e\u3088\u3046\u306b\u3001\u884c\u306f\u5358\u306a\u308b\u4e00\u822c\u7684\u306aGo\u8a00\u8a9e <i>\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9<\/i>\u306e\u914d\u5217\u3067\u3042\u308a\u3001\u5217\u306e<i>\u884c\u30a4\u30f3\u30c7\u30c3\u30af\u30b9<\/i> \u3092\u53c2\u7167\u3059\u308b\u3060\u3051\u3067\u3001\u691c\u7d22\u3059\u308b\u5217\u306e\u5024\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3002<\/p>\n<p>\u305f\u3068\u3048\u3070\u3001\u30b3\u30f3\u30c6\u30ca\u306e\u30b9\u30ad\u30fc\u30de\u306e<i> 4\u756a\u76ee<\/i>\u306e\u5217\u3067\u3042\u308bfloat\u578b\u306e<code> '\u7d4c\u5ea6' <\/code>\u5217\u306e\u30b3\u30f3\u30c6\u30ca\u3092\u4f5c\u6210\u3059\u308b\u3068\u3057\u307e\u3057\u3087\u3046\u3002 <b>\u7d4c\u5ea6<\/b>\u5217\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u305f\u3081\u306b\u3053\u306e\u30b3\u30f3\u30c6\u30ca\u304b\u3089\u884c\u3092\u53d6\u5f97\u3059\u308b\u306b\u306f\u3001<b>index 4 <\/b>\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3060\u3051\u3067\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001\u884c\u30ad\u30fc\u3067\u3082\u30b3\u30f3\u30c6\u30ca\u5185\u306e\u884c\u3092<b>\u524a\u9664<\/b>\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"prettyprint\"> \/\/Schema of our collection container\nschema, err := griddb_go.CreateContainerInfo(collection_name,[][]interface{}{\n\t\t{\"sid\",griddb_go.TYPE_STRING},\n\t\t{\"name\",griddb_go.TYPE_STRING},\n\t\t{\"type\",griddb_go.TYPE_STRING},\n\t\t{\"latitude\",griddb_go.TYPE_DOUBLE},\n\t\t{\"longitude\",griddb_go.TYPE_DOUBLE},\n\t\t{\"installation\",griddb_go.TYPE_TIMESTAMP}},\n\t\tgriddb_go.CONTAINER_COLLECTION,\n\t\ttrue)\n       \ncollection, err := gridstore.PutContainer(schema,false)\n\/\/ (snip)\n\n\/\/Find a row in the collection container with row-key ('sid') \"W_1003\"\nretrieved, err := collection.Get(\"W_1003\")\nif len(retrieved) &gt; 0 {\n                \/\/Access and display longitude column of row (is column 4 in row)\n                fmt.Printf(\"Longitude value of row with row-key %s is %fn\",\"W_1003\",retrieved[4]\n}\n\n\/\/We can also remove the \"W_1003\" row by calling .remove()\ncollection.Remove(\"W_1003\")\n\n\/\/Attempt to access row again, this should return an empty row (an empty array) if the removal was successful\nattempt, err := collection.Get(\"W_1003\")\nif len(attempt) == 0 {\n                fmt.Printf(\"Row with key %s removed successfullyn\",\"W_1003\")\n}\n<\/pre>\n<h3 id=\"queries\">\u30c7\u30fc\u30bf\u306e\u30af\u30a8\u30ea\u3068\u53d6\u5f97<\/h3>\n<p>\u30b3\u30f3\u30c6\u30ca\u306b\u30c7\u30fc\u30bf\u304c\u683c\u7d0d\u3055\u308c\u3001GridDB\u306b\u633f\u5165\u3055\u308c\u308b\u3068\u3001\u30c7\u30fc\u30bf\u306e\u30af\u30a8\u30ea\u3068\u30d5\u30a7\u30c3\u30c1\u304c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002 Python\u3084Java API\u3068\u540c\u69d8\u306b\u3001\u30b3\u30f3\u30c6\u30ca\u306b\u767a\u884c\u3057\u305f\u3044TQL\u30af\u30a8\u30ea\u3092\u4f7f\u3063\u3066<b> Query\u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/b>\uff08\u307e\u305f\u306f<code> griddb_go.Query <\/code>\u578b\uff09\u3092\u69cb\u7bc9\u3059\u308b\u3060\u3051\u3067\u3059\u3002 \u3053\u308c\u304c\u5b8c\u4e86\u3057\u305f\u3089\u3001\u30af\u30a8\u30ea\u306e\u7d50\u679c\u3092<b>\u53d6\u5f97<\/b>\u3057\u3066<code> griddb_go.RowSet <\/code>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u683c\u7d0d\u3057\u307e\u3059\u3002<\/p>\n<ul>\n<li>\n<b>\u6ce8<\/b>\uff1a\u66f4\u65b0\u3059\u308b\u7279\u5b9a\u306e\u884c\u3092\u9078\u629e\u3059\u308b\u5834\u5408\u306f\u3001\u66f4\u65b0\u3057\u3088\u3046\u3068\u3057\u3066\u3044\u308b\u30b3\u30f3\u30c6\u30ca\u306e<i>\u30b3\u30df\u30c3\u30c8\u30e2\u30fc\u30c9<\/i>\u3092<i> false <\/i> \u306b\u8a2d\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/li>\n<\/ul>\n<p><code>griddb_go.Container.Put()<\/code>\u307e\u305f\u306f<code>griddb_go.RowSet.Update()<\/code>\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u884c\u306e\u5024\u3092\u66f4\u65b0\u3057\u7d42\u3048\u305f\u3089\u3001\u5909\u66f4\u3092<code>Commit()<\/code>\u3057\u307e\u3059\u3002<\/p>\n<h4 id=\"standard-query\">\u6a19\u6e96TQL\u30af\u30a8\u30ea<\/h4>\n<pre class=\"prettyprint\">\/\/Set commit-mode to false so you can update the rows\ncollection.SetAutoCommit(false)\n\n\/\/Search for a row with row-key that ends in '2' and has a column value of 'weather' in the type column\nquery,err := collection.Query(\"select * WHERE CHAR_LENGTH(sid) = 6 AND sid LIKE 'W%2' AND LOWER(type) = 'weather'\")\n\n\/\/Fetch the rows and make them available for update\nrowSet,err := query.Fetch(true)\n\nfor rowSet.HasNext(){\n        \/\/Retrieve and iterate through the rowset row-by-row\n\trrow, err := rowSet.NextRow()\n\tif err != nil{\n\t\tfmt.Println(\"Error retrieving row\")\t\n\t}\n\n        \/\/Update the fourth column value of the row\n\trrow[4] = -88.0\n\n        \/\/Save updated row back to the rowSet\n\trowSet.Update(rrow)\n}\n\n\/\/Commit and save the updated RowSet back to the container\ncollection.Commit()\n<\/pre>\n<h4 id=\"aggregation-tql\">\u96c6\u8a08TQL<\/h4>\n<p>\u307e\u305f\u3001<i> TQL <\/i>\u3092\u4f7f\u7528\u3057\u3066\u96c6\u7d04\u30af\u30a8\u30ea\u3092\u4f5c\u6210\u3057\u767a\u884c\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002 \u30b3\u30f3\u30c6\u30ca\u304b\u3089<code>griddb_go.AggregationResult<\/code>\u3092\u5b9f\u884c\u3057\u3066\u30d5\u30a7\u30c3\u30c1\u3059\u308b\u65b9\u6cd5\u306f\u3001Python API\u306b\u3088\u304f\u4f3c\u3066\u3044\u307e\u3059\u3002 <code>rowSet.NextRow()<\/code>\u3092\u4f7f\u308f\u306a\u304f\u3066\u3082\u3001<code>.NextAggregation()<\/code>\u306b\u5909\u66f4\u3059\u308b\u3060\u3051\u3067\u30af\u30a8\u30ea\u304b\u3089\u53d6\u5f97\u3057\u305f<b> RowSet <\/b>\u3092\u53d6\u5f97\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002 \u305d\u306e<code> AggregationResult <\/code>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3067\u306f\u3001\u5fc5\u8981\u306a\u756a\u53f7\u306e\u578b\u3092\u53d6\u5f97\u3059\u308b\u305f\u3081\u306b<code>.Get()<\/code>\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"prettyprint\">column := \"turbidity\"\naggQuery, err := timeseries.Query(fmt.Sprintf(\"SELECT TIME_AVG(%s)\",column)) \/\/Get the time-weighted average of all turbidity values in our container\nif err != nil {\n\tfmt.Printf(\"Failed to issue query to timeseries container %sn\",container_name)\n\tfmt.Println(err)\n\tos.Exit(2)\n}\n\naggRowSet, err := aggQuery.Fetch(false) \/\/Issue query and fetch results\nif err != nil {\n\tfmt.Printf(\"Error retrieving query results from timeseries container %sn\",container_name)\n\tfmt.Println(err)\n\tos.Exit(2)\n}\n\n\nfor aggRowSet.HasNext(){\n\taggregation, err := aggRowSet.NextAggregation() \/\/Get the aggregation result from the rowset.\n\n\tif err != nil {\n\t\tfmt.Println(\"Failed to get aggregation result!\")\n\t} else {\n\t\tavg, err := aggregation.Get(griddb_go.TYPE_DOUBLE) \/\/Get the aggregation result's numerical value \n\t\tif err != nil {\n\t\t\tfmt.Printf(\"Error parsing aggreagtion resultn\")\n\t\t}\n\n\t\tfmt.Printf(\"The time average for the %s column in the %s container is %fn\",column,container_name,avg)\n\t}\n}\n<\/pre>\n<h3 id=\"timestamp-and-blob-data\">\u30bf\u30a4\u30e0\u30b9\u30bf\u30f3\u30d7\u3068\u30d0\u30a4\u30ca\u30ea\u30c7\u30fc\u30bf\u306e\u51e6\u7406<\/h3>\n<h4 id=\"timestamp-type-data\">\u30bf\u30a4\u30e0\u30b9\u30bf\u30f3\u30d7\u30c7\u30fc\u30bf<\/h4>\n<p>GridDB\u306eGo\u8a00\u8a9eclient\u306f\u3001\u30bf\u30a4\u30e0\u30b9\u30bf\u30f3\u30d7\u64cd\u4f5c\u306e\u305f\u3081\u306e\u4ed6\u306eAPI client\uff08Python\u3001C\uff09\u3068\u540c\u3058\u6a5f\u80fd\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002 GridDB\u3067\u306f<i>\u6642\u523b\u307e\u305f\u306f\u65e5\u4ed8<\/i>\u306e\u5024\u3092GridDB\u30b3\u30f3\u30c6\u30ca\u306b\u633f\u5165\u3059\u308b\u305f\u3081\u306b\u3001\u305d\u306e\u5024\u3092Go\u8a00\u8a9e\u3067<code> Time.time <\/code>\u578b\u306b\u30ad\u30e3\u30b9\u30c8\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3053\u3068\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u3064\u307e\u308a\u3001\u30bf\u30a4\u30e0\u30b9\u30bf\u30f3\u30d7\u5024\u3092\u7d14\u7c8b\u306a<i>\u6570\u5024<\/i>\u3068\u3057\u3066\u633f\u5165\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3002 \u30bf\u30a4\u30e0\u30b9\u30bf\u30f3\u30d7\u5024\u304c<i>\u884c\u30ad\u30fc<\/i>\u5217\u306b\u3042\u308a\u3001\u30c7\u30fc\u30bf\u304c\u30b3\u30f3\u30c6\u30ca\u306b\u633f\u5165\u3055\u308c\u306a\u3044\u5834\u5408\u3001<code>container.Put(row)<\/code>\u306e\u547c\u3073\u51fa\u3057\u304c\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n<p>\u3082\u3046\u4e00\u3064\u306e<b>\u6ce8\u610f\u70b9<\/b>\u306f\u3001GridDB\u30bf\u30a4\u30e0\u30b9\u30bf\u30f3\u30d7\u304c<i>\u30df\u30ea\u79d2<\/i>\u3067<i>\u7cbe\u5ea6<\/i>\u3092\u6301\u3064\u3053\u3068\u3067\u3059\u3002<\/p>\n<p>GridDB\u30bf\u30a4\u30e0\u30b9\u30bf\u30f3\u30d7\u756a\u53f7\u3092<i>\u30bf\u30a4\u30d7<\/i> <code> time.Time <\/code>\u306b\u5909\u63db\u3059\u308b\u306b\u306f\u3001\u30bf\u30a4\u30e0\u30b9\u30bf\u30f3\u30d7\u756a\u53f7\u3092<i>\u30ca\u30ce\u79d2<\/i>\u306b\u5909\u63db\u3057\u3001<code> time.Unix \uff08\uff09<\/code>\u3092\u4f7f\u7528\u3057\u3066time\u578b\u306b\u5909\u63db\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"prettyprint\">import (\n     \"time\"\n     \"github.com\/griddb\/go_client\"\n)\n\n\/\/ (snip)\n\n\/\/A way to express the current time as a time Type in Golang \nnow := time.Now().UTC() \/\/This has less precision than GridDB TimestampUtils\n\n\/\/ GridDB method of getting the current time as a number\nnow_ts :=  time.Unix(griddb_go.TimestampUtilsCurrent() * 1000000)\/\/ The number is then converted into a UTC time\n\n\/\/ Converting GridDB to Time.time values allows for precision and lowers the chance that \n\/\/ a row will inadvertently replace another row with the same row-key.\nrow := []interface{}{now_ts.UTC(),true,5.6}\nerr = timeseries.Put(row) \n<\/pre>\n<h4 id=\"binary-data\">\u30d0\u30a4\u30ca\u30ea\u307e\u305f\u306fBlob\u30c7\u30fc\u30bf<\/h4>\n<p>GridDB\u3067\u306f\u3001\u30d0\u30a4\u30ca\u30ea\u307e\u305f\u306f<b> BLOB <\/b>\u30c7\u30fc\u30bf\u306f\u3001<code> bytearray <\/code>\u3068\u3057\u3066\u8868\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002 \u753b\u50cf\u30c7\u30fc\u30bf\u3084\u5927\u304d\u306a\u30d0\u30c3\u30d5\u30a1\u3092\u8aad\u307f\u8fbc\u307e\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u5834\u5408\u306f\u3001\u7a7a\u306e<i>\u30d0\u30a4\u30c8\u914d\u5217<\/i>\u307e\u305f\u306f<code> [] byte <\/code>\u3092\u5272\u308a\u5f53\u3066\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><b> parseBlob <\/b>\u306e\u4e0b\u306e\u95a2\u6570\u306f\u3001\u753b\u50cf\u30c7\u30fc\u30bf\u3092<b> bytearray <\/b>\u306b\u8aad\u307f\u8fbc\u307f\u307e\u3059\u3002<\/p>\n<pre class=\"prettyprint\">func parseBlob(filename string) (blob []byte){\n\tfile, err := os.Open(filename) \/\/Open image file\n\tif err != nil {\n\t\tfmt.Printf(\"Error opening file %sn\",filename)\n\t\tfmt.Println(err)\n\t\tos.Exit(1)\n\t}\n\n\tdefer file.Close()\n\n\tfileInfo, _ := file.Stat() \/\/Get meta-information related to the image file\n\tvar size int64 = fileInfo.Size() \/\/Obtain file size\n\t\n\toutputStream := make([]byte,size) \/\/Allocate a byte array that is the size of the image's data\n\tbuffer := bufio.NewReader(file) \/\/Create a file reader for reading byte data from image file\n\t_, err = buffer.Read(outputStream) \/\/Read image file's data into output byte array\n\n\treturn outputStream\n}\n<\/pre>\n<p>\u3053\u308c\u306b\u3088\u308a\u3001<code> parseBlob <\/code>\u306e\u30c7\u30fc\u30bf\u3092<i> BLOB <\/i>\u5217\u306e\u5024\u306b\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"prettyprint\">image_blob := parseBlob(\"liveimage1.jpg\") \/\/Get bytearray for image file's data\nnow := time.Now().UTC() \/\/Obtain current time\n\n\/\/Create a Row containing our BLOB data (byte array) and insert it into Timeseries container\nfirst_row := []interface{}{now,\"Bright Sky\",500,\"liveimage1.jpg\",image_blob)\nerr = timeseries.Put(first_row)\n\nblob :=  []byte{65, 66, 67, 68, 69, 70, 71, 72, 73, 74} \/\/Create Blob as a simple byte array\nthird_row := []interface{}{time.Now().UTC(),\"Generic\",10,\"NULL\",blob} \n\n\/\/Create and insert GridDB row containing smaller byte array\nerr = timeseries.Put(third_row)\n<\/pre>\n<h2 id=\"conclusion\">\u7d50\u8ad6<\/h2>\n<p>Go\u8a00\u8a9e\u3092\u4f7f\u7528\u3057\u3066GridDB\u30af\u30e9\u30b9\u30bf\u3092\u63a5\u7d9a\u3001\u7ba1\u7406\u3059\u308b\u306e\u306f\u975e\u5e38\u306b\u7c21\u5358\u3067\u3042\u308b\u3053\u3068\u304c\u304a\u5206\u304b\u308a\u3044\u305f\u3060\u3051\u305f\u3067\u3057\u3087\u3046\u304b\u3002 GridDB Go client\u304c\u63d0\u4f9b\u3059\u308b\u3055\u307e\u3056\u307e\u306a\u30e6\u30fc\u30c6\u30a3\u30ea\u30c6\u30a3\u3092\u3059\u3079\u3066\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001GridDB\u3092\u4f7f\u3063\u305f\u30c7\u30fc\u30bf\u306e\u4fdd\u5b58\u3084\u9ad8\u6027\u80fdGo\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u958b\u767a\u306f\u3001\u3068\u3066\u3082\u9762\u767d\u3044\u3082\u306e\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<h3 id=\"reference\">\u53c2\u7167<\/h3>\n<ul>\n<li> <b>CentOS 7.3<\/b>\u30aa\u30da\u30ec\u30fc\u30c6\u30a3\u30f3\u30b0\u30b7\u30b9\u30c6\u30e0\u4e0a\u3067\u3001Go\u8a00\u8a9e <a href=\"https:\/\/dl.google.com\/go\/go1.10.1.linux-amd64.tar.gz\" title=\"Download Golang 1.9 for Linux\">version 1.9.2 linux\/amd64<\/a>\u3092\u4f7f\u7528\u3057\u307e\u3057\u305f\u3002<\/li>\n<li>GridDB\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306f\u3001<a href=\"https:\/\/github.com\/griddb\/griddb_nosql\/releases\/download\/v3.0.1\/griddb_nosql-3.0.1-1.linux.x86_64.rpm\" title=\"Download GridDB CE\">GridDB Community Edition 3.0.1<\/a> \u3092\u4f7f\u7528\u3057\u307e\u3057\u305f\u3002<\/li>\n<li>GridDB Go client\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306b\u3064\u3044\u3066\u306f\u3001<a href=\"https:\/\/github.com\/griddb\/go_client\" title=\"Go client Github Page\">official Github repository<\/a>\u3092\u3054\u53c2\u7167\u304f\u3060\u3055\u3044\u3002<\/li>\n<li><a href=\"http:\/\/www.griddb.org\/go_client\/GoAPIReference.htm\" title=\"Go API Reference\">\u3053\u306e\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u30da\u30fc\u30b8<\/a> \u306b\u3001Go client\u304b\u3089\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308bGridDB\u306e\u3059\u3079\u3066\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3068\u30ea\u30bd\u30fc\u30b9\u304c\u8f09\u3063\u3066\u3044\u307e\u3059\u3002<\/li>\n<li>GridDB\u306eGo library\u304c\u69cb\u7bc9\u3055\u308c\u305f\u5f8c\u306f\u3001<b>griddb_go<\/b>\u30d1\u30c3\u30b1\u30fc\u30b8\u3067\u4f7f\u7528\u3055\u308c\u308b\u3059\u3079\u3066\u306e\u30e1\u30bd\u30c3\u30c9\u3068\u5c5e\u6027\u306f <code>src\/griddb_go.go<\/code>\u30d5\u30a1\u30a4\u30eb\u306b\u4fdd\u5b58\u3055\u308c\u307e\u3059\u3002<\/li>\n<li>Go\u8a00\u8a9e\u306e\u3088\u308a\u8a73\u3057\u3044\u4f7f\u3044\u65b9\u306b\u3064\u3044\u3066\u306f\u3001<a href=\"https:\/\/golang.org\/doc\/\" title=\"Golang official documentation page\">official documentation<\/a>\u3092\u3054\u53c2\u7167\u304f\u3060\u3055\u3044\u3002<\/li>\n<\/ul>\n<h4 id=\"source-code\">\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9<\/h4>\n<p>\u3053\u306e\u30d6\u30ed\u30b0\u3067\u4f7f\u7528\u3055\u308c\u3066\u3044\u308b\u3059\u3079\u3066\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306f\u3001\u4ee5\u4e0b\u304b\u3089\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3067\u304d\u307e\u3059\u3002<\/p>\n<ul id=\"source-code-sample\">\n<li><a href=\"https:\/\/griddb.net\/ja\/download\/24823\/\">go_samples.zip<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u306f\u3058\u3081\u306b GridDB\u306f\u3001Google\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9eGo \u7528\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30b3\u30cd\u30af\u30bf\u3092\u30ea\u30ea\u30fc\u30b9\u3057\u307e\u3057\u305f\u3002 Python \u3084Ruby \u306e\u3088\u3046\u306b\u3001 SWIG \u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u7528\u3057\u3066\u69cb\u7bc9\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u30b3\u30cd\u30af\u30bf\u306f\u3001Go 1 [&hellip;]<\/p>\n","protected":false},"author":123,"featured_media":49057,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1005],"tags":[],"class_list":["post-50676","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-1005"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>GridDB\u306eGo\u8a00\u8a9e Client\u5165\u9580 | GridDB: Open Source Time Series Database for IoT<\/title>\n<meta name=\"description\" content=\"\u306f\u3058\u3081\u306b GridDB\u306f\u3001Google\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9eGo \u7528\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30b3\u30cd\u30af\u30bf\u3092\u30ea\u30ea\u30fc\u30b9\u3057\u307e\u3057\u305f\u3002 Python \u3084Ruby \u306e\u3088\u3046\u306b\u3001 SWIG\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/griddb.net\/ja\/\u672a\u5206\u985e\/getting-started-with-griddbs-golang-client\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"GridDB\u306eGo\u8a00\u8a9e Client\u5165\u9580 | GridDB: Open Source Time Series Database for IoT\" \/>\n<meta property=\"og:description\" content=\"\u306f\u3058\u3081\u306b GridDB\u306f\u3001Google\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9eGo \u7528\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30b3\u30cd\u30af\u30bf\u3092\u30ea\u30ea\u30fc\u30b9\u3057\u307e\u3057\u305f\u3002 Python \u3084Ruby \u306e\u3088\u3046\u306b\u3001 SWIG\" \/>\n<meta property=\"og:url\" content=\"https:\/\/griddb.net\/ja\/\u672a\u5206\u985e\/getting-started-with-griddbs-golang-client\/\" \/>\n<meta property=\"og:site_name\" content=\"GridDB: Open Source Time Series Database for IoT\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/griddbcommunity\/\" \/>\n<meta property=\"article:published_time\" content=\"2018-05-09T07:00:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-11-14T15:53:41+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.griddb.net\/wp-content\/uploads\/2018\/05\/blog_title_25.png\" \/>\n\t<meta property=\"og:image:width\" content=\"870\" \/>\n\t<meta property=\"og:image:height\" content=\"490\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Joshua Pascascio\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@GridDBCommunity\" \/>\n<meta name=\"twitter:site\" content=\"@GridDBCommunity\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"Joshua Pascascio\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"6\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/getting-started-with-griddbs-golang-client\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/getting-started-with-griddbs-golang-client\/\"},\"author\":{\"name\":\"Joshua Pascascio\",\"@id\":\"https:\/\/griddb.net\/en\/#\/schema\/person\/ca72185e9a3778df765a76313f789fd8\"},\"headline\":\"GridDB\u306eGo\u8a00\u8a9e Client\u5165\u9580\",\"datePublished\":\"2018-05-09T07:00:00+00:00\",\"dateModified\":\"2025-11-14T15:53:41+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/getting-started-with-griddbs-golang-client\/\"},\"wordCount\":162,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/griddb.net\/en\/#organization\"},\"image\":{\"@id\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/getting-started-with-griddbs-golang-client\/#primaryimage\"},\"thumbnailUrl\":\"\/wp-content\/uploads\/2018\/05\/blog_title_25.png\",\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/getting-started-with-griddbs-golang-client\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/getting-started-with-griddbs-golang-client\/\",\"url\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/getting-started-with-griddbs-golang-client\/\",\"name\":\"GridDB\u306eGo\u8a00\u8a9e Client\u5165\u9580 | GridDB: Open Source Time Series Database for IoT\",\"isPartOf\":{\"@id\":\"https:\/\/griddb.net\/en\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/getting-started-with-griddbs-golang-client\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/getting-started-with-griddbs-golang-client\/#primaryimage\"},\"thumbnailUrl\":\"\/wp-content\/uploads\/2018\/05\/blog_title_25.png\",\"datePublished\":\"2018-05-09T07:00:00+00:00\",\"dateModified\":\"2025-11-14T15:53:41+00:00\",\"description\":\"\u306f\u3058\u3081\u306b GridDB\u306f\u3001Google\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9eGo \u7528\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30b3\u30cd\u30af\u30bf\u3092\u30ea\u30ea\u30fc\u30b9\u3057\u307e\u3057\u305f\u3002 Python \u3084Ruby \u306e\u3088\u3046\u306b\u3001 SWIG\",\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/getting-started-with-griddbs-golang-client\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/getting-started-with-griddbs-golang-client\/#primaryimage\",\"url\":\"\/wp-content\/uploads\/2018\/05\/blog_title_25.png\",\"contentUrl\":\"\/wp-content\/uploads\/2018\/05\/blog_title_25.png\",\"width\":870,\"height\":490},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/griddb.net\/en\/#website\",\"url\":\"https:\/\/griddb.net\/en\/\",\"name\":\"GridDB: Open Source Time Series Database for IoT\",\"description\":\"GridDB is an open source time-series database with the performance of NoSQL and convenience of SQL\",\"publisher\":{\"@id\":\"https:\/\/griddb.net\/en\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/griddb.net\/en\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/griddb.net\/en\/#organization\",\"name\":\"Fixstars\",\"url\":\"https:\/\/griddb.net\/en\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/griddb.net\/en\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/griddb.net\/wp-content\/uploads\/2019\/04\/fixstars_logo_web_tagline.png\",\"contentUrl\":\"https:\/\/griddb.net\/wp-content\/uploads\/2019\/04\/fixstars_logo_web_tagline.png\",\"width\":200,\"height\":83,\"caption\":\"Fixstars\"},\"image\":{\"@id\":\"https:\/\/griddb.net\/en\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/griddbcommunity\/\",\"https:\/\/x.com\/GridDBCommunity\",\"https:\/\/www.linkedin.com\/company\/griddb-by-toshiba\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/griddb.net\/en\/#\/schema\/person\/ca72185e9a3778df765a76313f789fd8\",\"name\":\"Joshua Pascascio\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/griddb.net\/en\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/872ef8be79cb5117c256feb4c279ac41b954bfba599d647db925185c449aff1c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/872ef8be79cb5117c256feb4c279ac41b954bfba599d647db925185c449aff1c?s=96&d=mm&r=g\",\"caption\":\"Joshua Pascascio\"},\"url\":\"https:\/\/www.griddb.net\/ja\/author\/joshua\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"GridDB\u306eGo\u8a00\u8a9e Client\u5165\u9580 | GridDB: Open Source Time Series Database for IoT","description":"\u306f\u3058\u3081\u306b GridDB\u306f\u3001Google\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9eGo \u7528\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30b3\u30cd\u30af\u30bf\u3092\u30ea\u30ea\u30fc\u30b9\u3057\u307e\u3057\u305f\u3002 Python \u3084Ruby \u306e\u3088\u3046\u306b\u3001 SWIG","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/griddb.net\/ja\/\u672a\u5206\u985e\/getting-started-with-griddbs-golang-client\/","og_locale":"ja_JP","og_type":"article","og_title":"GridDB\u306eGo\u8a00\u8a9e Client\u5165\u9580 | GridDB: Open Source Time Series Database for IoT","og_description":"\u306f\u3058\u3081\u306b GridDB\u306f\u3001Google\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9eGo \u7528\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30b3\u30cd\u30af\u30bf\u3092\u30ea\u30ea\u30fc\u30b9\u3057\u307e\u3057\u305f\u3002 Python \u3084Ruby \u306e\u3088\u3046\u306b\u3001 SWIG","og_url":"https:\/\/griddb.net\/ja\/\u672a\u5206\u985e\/getting-started-with-griddbs-golang-client\/","og_site_name":"GridDB: Open Source Time Series Database for IoT","article_publisher":"https:\/\/www.facebook.com\/griddbcommunity\/","article_published_time":"2018-05-09T07:00:00+00:00","article_modified_time":"2025-11-14T15:53:41+00:00","og_image":[{"width":870,"height":490,"url":"https:\/\/www.griddb.net\/wp-content\/uploads\/2018\/05\/blog_title_25.png","type":"image\/png"}],"author":"Joshua Pascascio","twitter_card":"summary_large_image","twitter_creator":"@GridDBCommunity","twitter_site":"@GridDBCommunity","twitter_misc":{"\u57f7\u7b46\u8005":"Joshua Pascascio","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"6\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/getting-started-with-griddbs-golang-client\/#article","isPartOf":{"@id":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/getting-started-with-griddbs-golang-client\/"},"author":{"name":"Joshua Pascascio","@id":"https:\/\/griddb.net\/en\/#\/schema\/person\/ca72185e9a3778df765a76313f789fd8"},"headline":"GridDB\u306eGo\u8a00\u8a9e Client\u5165\u9580","datePublished":"2018-05-09T07:00:00+00:00","dateModified":"2025-11-14T15:53:41+00:00","mainEntityOfPage":{"@id":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/getting-started-with-griddbs-golang-client\/"},"wordCount":162,"commentCount":0,"publisher":{"@id":"https:\/\/griddb.net\/en\/#organization"},"image":{"@id":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/getting-started-with-griddbs-golang-client\/#primaryimage"},"thumbnailUrl":"\/wp-content\/uploads\/2018\/05\/blog_title_25.png","inLanguage":"ja","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/getting-started-with-griddbs-golang-client\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/getting-started-with-griddbs-golang-client\/","url":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/getting-started-with-griddbs-golang-client\/","name":"GridDB\u306eGo\u8a00\u8a9e Client\u5165\u9580 | GridDB: Open Source Time Series Database for IoT","isPartOf":{"@id":"https:\/\/griddb.net\/en\/#website"},"primaryImageOfPage":{"@id":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/getting-started-with-griddbs-golang-client\/#primaryimage"},"image":{"@id":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/getting-started-with-griddbs-golang-client\/#primaryimage"},"thumbnailUrl":"\/wp-content\/uploads\/2018\/05\/blog_title_25.png","datePublished":"2018-05-09T07:00:00+00:00","dateModified":"2025-11-14T15:53:41+00:00","description":"\u306f\u3058\u3081\u306b GridDB\u306f\u3001Google\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9eGo \u7528\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30b3\u30cd\u30af\u30bf\u3092\u30ea\u30ea\u30fc\u30b9\u3057\u307e\u3057\u305f\u3002 Python \u3084Ruby \u306e\u3088\u3046\u306b\u3001 SWIG","inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/getting-started-with-griddbs-golang-client\/"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/getting-started-with-griddbs-golang-client\/#primaryimage","url":"\/wp-content\/uploads\/2018\/05\/blog_title_25.png","contentUrl":"\/wp-content\/uploads\/2018\/05\/blog_title_25.png","width":870,"height":490},{"@type":"WebSite","@id":"https:\/\/griddb.net\/en\/#website","url":"https:\/\/griddb.net\/en\/","name":"GridDB: Open Source Time Series Database for IoT","description":"GridDB is an open source time-series database with the performance of NoSQL and convenience of SQL","publisher":{"@id":"https:\/\/griddb.net\/en\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/griddb.net\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Organization","@id":"https:\/\/griddb.net\/en\/#organization","name":"Fixstars","url":"https:\/\/griddb.net\/en\/","logo":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/griddb.net\/en\/#\/schema\/logo\/image\/","url":"https:\/\/griddb.net\/wp-content\/uploads\/2019\/04\/fixstars_logo_web_tagline.png","contentUrl":"https:\/\/griddb.net\/wp-content\/uploads\/2019\/04\/fixstars_logo_web_tagline.png","width":200,"height":83,"caption":"Fixstars"},"image":{"@id":"https:\/\/griddb.net\/en\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/griddbcommunity\/","https:\/\/x.com\/GridDBCommunity","https:\/\/www.linkedin.com\/company\/griddb-by-toshiba"]},{"@type":"Person","@id":"https:\/\/griddb.net\/en\/#\/schema\/person\/ca72185e9a3778df765a76313f789fd8","name":"Joshua Pascascio","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/griddb.net\/en\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/872ef8be79cb5117c256feb4c279ac41b954bfba599d647db925185c449aff1c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/872ef8be79cb5117c256feb4c279ac41b954bfba599d647db925185c449aff1c?s=96&d=mm&r=g","caption":"Joshua Pascascio"},"url":"https:\/\/www.griddb.net\/ja\/author\/joshua\/"}]}},"_links":{"self":[{"href":"https:\/\/www.griddb.net\/ja\/wp-json\/wp\/v2\/posts\/50676","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.griddb.net\/ja\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.griddb.net\/ja\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.griddb.net\/ja\/wp-json\/wp\/v2\/users\/123"}],"replies":[{"embeddable":true,"href":"https:\/\/www.griddb.net\/ja\/wp-json\/wp\/v2\/comments?post=50676"}],"version-history":[{"count":1,"href":"https:\/\/www.griddb.net\/ja\/wp-json\/wp\/v2\/posts\/50676\/revisions"}],"predecessor-version":[{"id":51519,"href":"https:\/\/www.griddb.net\/ja\/wp-json\/wp\/v2\/posts\/50676\/revisions\/51519"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.griddb.net\/ja\/wp-json\/wp\/v2\/media\/49057"}],"wp:attachment":[{"href":"https:\/\/www.griddb.net\/ja\/wp-json\/wp\/v2\/media?parent=50676"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.griddb.net\/ja\/wp-json\/wp\/v2\/categories?post=50676"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.griddb.net\/ja\/wp-json\/wp\/v2\/tags?post=50676"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}