{"id":71148,"date":"2024-03-27T14:00:00","date_gmt":"2024-03-27T05:00:00","guid":{"rendered":"https:\/\/www.creationline.com\/?p=71148"},"modified":"2024-03-27T15:09:46","modified_gmt":"2024-03-27T06:09:46","slug":"%e5%a4%a7%e9%87%8f%e3%81%ae%e5%80%8b%e4%ba%ba%e6%83%85%e5%a0%b1%e3%82%92%e7%94%9f%e6%88%90%e3%81%97%e3%81%a6mongodb%e3%81%ab%e5%8a%b9%e7%8e%87%e7%9a%84%e3%81%ab%e6%8c%bf%e5%85%a5%e3%81%99%e3%82%8b-go","status":"publish","type":"post","link":"https:\/\/www.creationline.com\/tech-blog\/others\/go\/71148","title":{"rendered":"\u5927\u91cf\u306e\u500b\u4eba\u60c5\u5831\u3092\u751f\u6210\u3057\u3066MongoDB\u306b\u52b9\u7387\u7684\u306b\u633f\u5165\u3059\u308b #golang #MongoDB #Faker"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\">\u306f\u3058\u3081\u306b<\/h3>\n\n\n\n<p>MongoDB\u30c6\u30af\u30cb\u30ab\u30eb\u30b5\u30dd\u30fc\u30c8\u306e\u5c71\u68ee\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u5148\u65e5\u3001MongoDB\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u30c1\u30e5\u30fc\u30cb\u30f3\u30b0\u306b\u95a2\u308f\u308b\u6a5f\u4f1a\u304c\u3042\u308a\u307e\u3057\u305f\u3002\u30af\u30a8\u30ea\u306e\u901f\u5ea6\u304c9\u5272\u65b9\u6539\u5584\u3057\u305f\u306e\u3092\u76ee\u306e\u5f53\u305f\u308a\u306b\u3057\u3001\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u30c1\u30e5\u30fc\u30cb\u30f3\u30b0\u306e\u5965\u6df1\u3055\u3092\u611f\u3058\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u305d\u3053\u3067\u3001\u52b9\u7387\u7684\u306a\u30af\u30a8\u30ea\u306e\u66f8\u304d\u65b9\u3084\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306b\u3064\u3044\u3066\u3001\u5b9f\u6a5f\u3092\u89e6\u308a\u306a\u304c\u3089\u77e5\u898b\u3092\u6df1\u3081\u308b\u30b5\u30f3\u30c9\u30dc\u30c3\u30af\u30b9\u306e\u74b0\u5883\u304c\u6b32\u3057\u304f\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u30c1\u30e5\u30fc\u30cb\u30f3\u30b0\u3084\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306e\u52b9\u679c\u3092\u691c\u8a3c\u3059\u308b\u305f\u3081\u306b\u3001\u30c7\u30fc\u30bf\u6570\u3068\u3057\u3066\u306f\u6570\u5341\u4e07\u4ef6\u306f\u6b32\u3057\u3044\u306a\u3068\u601d\u3044\u307e\u3057\u305f\u304c\u3001\u597d\u307f\u306e\u30b5\u30f3\u30d7\u30eb\u30c7\u30fc\u30bf\uff08\u203b1\uff09\u304c\u898b\u3064\u3051\u3089\u308c\u306a\u304b\u3063\u305f\u306e\u3067\u3001\u81ea\u5206\u3067\u751f\u6210\u3059\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u4eca\u56de\u306f\u3001\u30b5\u30f3\u30c9\u30dc\u30c3\u30af\u30b9\u306e\u4e0b\u6e96\u5099\u3068\u3057\u3066\u3001\u500b\u4eba\u60c5\u5831\u306e\u30d5\u30a7\u30a4\u30af\u30c7\u30fc\u30bf\u3092\u5927\u91cf\uff08\u6570\u5341\u4e07\u4ef6\uff5e\uff09\u306b\u751f\u6210\u3057\u3066MongoDB\u306b\u633f\u5165\u3057\u3066\u307f\u305f\u3002\u3068\u3044\u3046\u5185\u5bb9\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u5b9f\u88c5\u3059\u308b\u307e\u3067\u306e\u7d06\u4f59\u66f2\u6298\u3092\u6642\u7cfb\u5217\u3067\u66f8\u3044\u3066\u3044\u307e\u3059\u304c\u3001\u624b\u3063\u53d6\u308a\u65e9\u304f\u89e3\u6c7a\u7b56\u3060\u3051\u3092\u77e5\u308a\u305f\u3044\u65b9\u306f\u3001\u76ee\u6b21\u304b\u3089\u300c\u89e3\u6c7a\u7b56\u300d\u4ee5\u964d\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p>\u203b1\u2026MongoDB\u306eAtlas\u306e\u30b5\u30f3\u30d7\u30eb\u30c7\u30fc\u30bf\u3060\u3068\u6700\u5927\u306710\u4e07\u4ef6\uff08sample_training\u5185\u306egrades\uff09\u3067\u3057\u305f\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u8a00\u8a9e\u306e\u9078\u5b9a<\/h3>\n\n\n\n<p>MongoDB\u3067\u306f<a href=\"https:\/\/www.mongodb.com\/docs\/drivers\/\" target=\"_blank\" rel=\"noreferrer noopener\">\u5404\u8a00\u8a9e\u306e\u516c\u5f0f\u30c9\u30e9\u30a4\u30d0<\/a>\u304c\u63d0\u4f9b\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u4eca\u56de\u306fGO\u8a00\u8a9e\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002\u9078\u5b9a\u7406\u7531\u306f\u4ee5\u524d\u304b\u3089\u6c17\u306b\u306a\u3063\u3066\u3044\u305f\u304b\u3089\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u666e\u6bb5\u304b\u3089\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3055\u308c\u308b\u65b9\u306f\u304a\u597d\u304d\u306a\u8a00\u8a9e\u3092\u4f7f\u3046\u306e\u304c\u826f\u3044\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb<\/h3>\n\n\n\n<p>\u4eca\u56de\u306e\u8a18\u4e8b\u3067\u306f\u3042\u307e\u308a\u91cd\u8981\u3067\u306a\u3044\u306e\u3067\u3001\u3053\u306e\u3078\u3093\u3092\u53c2\u8003\u306b\u3057\u305f\u3088\u3002\u3068\u3044\u3046\u306e\u3092\u4e0a\u3052\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306f\u5e74\u5358\u4f4d\u3067\u3054\u7121\u6c99\u6c70\u3067\u3057\u305f\u3057\u3001\u521d\u3081\u3066\u89e6\u308b\u8a00\u8a9e\u3067\u3082\u3042\u3063\u305f\u306e\u3067\u3001A Tour of Go\u3084\u521d\u5fc3\u8005\u5411\u3051\u306e\u89e3\u8aac\u8a18\u4e8b\u306b\u52a9\u3051\u3089\u308c\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p><a href=\"https:\/\/go-tour-jp.appspot.com\/welcome\/1\" target=\"_blank\" rel=\"noreferrer noopener\">A Tour of Go<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/qiita.com\/tenntenn\/items\/0e33a4959250d1a55045\" target=\"_blank\" rel=\"noreferrer noopener\">Go\u306e\u521d\u5fc3\u8005\u304c\u898b\u308b\u3068\u5e78\u305b\u306b\u306a\u308c\u308b\u5834\u6240 #golang #Go - Qiita<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/www.mongodb.com\/docs\/drivers\/go\/current\/\" target=\"_blank\" rel=\"noreferrer noopener\">MongoDB Go Driver<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u30d5\u30a7\u30a4\u30af\u30c7\u30fc\u30bf\u306e\u751f\u6210<\/h3>\n\n\n\n<p>\u30d5\u30a7\u30a4\u30af\u30c7\u30fc\u30bf\u306e\u751f\u6210\u3068\u8a00\u3048\u3070Faker\u3067\u3059\u3002GO\u8a00\u8a9e\u3067\u3082Faker\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u63d0\u4f9b\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u8907\u6570\u3042\u308b\u3088\u3046\u3067\u3059\u304c\u3001\u4eca\u56de\u306f<a href=\"https:\/\/pkg.go.dev\/github.com\/go-faker\/faker\/v4\" target=\"_blank\" rel=\"noreferrer noopener\">\u3053\u3061\u3089<\/a>\u3092\u4f7f\u7528\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u307e\u305a\u306f\u3001\u500b\u4eba\u60c5\u5831\u30921\u4ef6\u751f\u6210\u3057\u3066\u3001\u51fa\u529b\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u66f8\u3044\u3066\u307f\u307e\u3057\u305f\u3002\u51fa\u529b\u3059\u308b\u9805\u76ee\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u30e6\u30fc\u30b6\u30fc\u540d<\/li>\n\n\n\n<li>\u30d1\u30b9\u30ef\u30fc\u30c9<\/li>\n\n\n\n<li>\u5e74\u9f62\uff0818\u6b73\uff5e100\u6b73\u306e\u9593\u306e\u30e9\u30f3\u30c0\u30e0\u306a\u6570\u5024\uff09<\/li>\n\n\n\n<li>\u6027\u5225\uff08\u7537\u6027 or \u5973\u6027\uff09<\/li>\n\n\n\n<li>\u30d5\u30a1\u30fc\u30b9\u30c8\u30cd\u30fc\u30e0\uff08\u540d\u524d\uff09<\/li>\n\n\n\n<li>\u30e9\u30b9\u30c8\u30cd\u30fc\u30e0\uff08\u82d7\u5b57\uff09<\/li>\n\n\n\n<li>\u5e74\u53ce\uff08200\u4e07\u5186\uff5e5000\u4e07\u5186\u306e\u30e9\u30f3\u30c0\u30e0\u306a\u6570\u5024\uff09<\/li>\n<\/ul>\n\n\n\n<p>Faker\u3067\u306f\u3044\u308d\u3044\u308d\u306a\u9805\u76ee\u306b\u5bfe\u5fdc\u3057\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u8208\u5473\u306e\u3042\u308b\u65b9\u306f<a href=\"https:\/\/pkg.go.dev\/github.com\/go-faker\/faker\/v4\">\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306b\u3042\u308bExample<\/a>\u3092\u898b\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002\u4eca\u56de\u306f\u82f1\u8a9e\u3067\u51fa\u529b\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u307b\u304b\u306e\u8a00\u8a9e\uff08\u3082\u3061\u308d\u3093\u65e5\u672c\u8a9e\u3082\u5bfe\u5fdc\uff09\u3067\u3082\u51fa\u529b\u53ef\u80fd\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"golang\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">package main\n\n\nimport (\n    \"fmt\"\n\n\n    \"github.com\/go-faker\/faker\/v4\"\n    \"github.com\/go-faker\/faker\/v4\/pkg\/options\"\n)\n\n\ntype PersonalData struct {\n    Username  string `custom:\"username\"`\n    Password  string `custom:\"password\"`\n    Age       int    `custom:\"boundary_start=18,boundary_end=100\"`\n    Gender    string `custom:\"oneof:female, male\"`\n    Firstname string `custom:\"first_name\"`\n    Lastname  string `custom:\"last_name\"`\n    Income    int    `custom:\"boundary_start=200,boundary_end=5000\"`\n}\n\n\nfunc main() {\n\n\n    var personaldata PersonalData\n    err := faker.FakeData(&amp;personaldata, options.WithTagName(\"custom\"))\n    if err != nil {\n        panic(err)\n    }\n    fmt.Println(personaldata)\n}<\/pre>\n\n\n\n<p>\u5b9f\u884c\u3057\u305f\u74b0\u5883\u306fWindows 11\u4e0a\u306eWSL\uff08Debian GNU\/Linux 12.5\uff09\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u4ee5\u4e0b\u304c\u5b9f\u884c\u7d50\u679c\u3067\u3059\u3002\u5b9f\u884c\u3059\u308b\u305f\u3073\u306b\u30e9\u30f3\u30c0\u30e0\u306a\u30c7\u30fc\u30bf\u304c1\u4ef6\u751f\u6210\u3055\u308c\u3066\u3044\u308b\u306e\u304c\u5206\u304b\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"raw\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">kayou@DESKTOP-EUK2PH4:~\/go-faker-mongodb\/make-data-by-faker$ go run fake_sample.go \n{fEJULSH dRbLiYAFCxTntarBMJTjBBeDRbcyGxBqJgQOYlkfhTMflbjMGV 96 female Bettie Weissnat 549}\nkayou@DESKTOP-EUK2PH4:~\/go-faker-mongodb\/make-data-by-faker$ go run fake_sample.go \n{NKfSZxs cDiBPiKmVkGPWdhxZsHewIalDHPZrKygYHvaKjWCSTEUMaFYGQ 44 male Nyasia Frami 1141}\nkayou@DESKTOP-EUK2PH4:~\/go-faker-mongodb\/make-data-by-faker$ go run fake_sample.go \n{CfFmibZ dOdOXKxgGMFGuYTyUqjIHInDOQdHMsoYuaaVKCbAcfKPxBGTVT 67 male Melba Wolf 561}<\/pre>\n\n\n\n<p>\u3053\u308c\u3092\u7e70\u308a\u8fd4\u305b\u3070\u3001\u6570\u5341\u4e07\u4ef6\u306e\u30d5\u30a7\u30a4\u30af\u30c7\u30fc\u30bf\u3092\u751f\u6210\u3067\u304d\u305d\u3046\u3067\u3059\u3002for\u6587\u3092\u8ffd\u52a0\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"golang\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">package main\n\n\nimport (\n    \"fmt\"\n\n\n    \"github.com\/go-faker\/faker\/v4\"\n    \"github.com\/go-faker\/faker\/v4\/pkg\/options\"\n)\n\n\ntype PersonalData struct {\n    Username  string `custom:\"username\"`\n    Password  string `custom:\"password\"`\n    Age       int    `custom:\"boundary_start=18,boundary_end=100\"`\n    Gender    string `custom:\"oneof:female, male\"`\n    Firstname string `custom:\"first_name\"`\n    Lastname  string `custom:\"last_name\"`\n    Income    int    `custom:\"boundary_start=200,boundary_end=5000\"`\n}\n\n\nfunc main() {\n\n\n    for i := 0; i &lt; 10; i++ {\n\n\n        var personaldata PersonalData\n        err := faker.FakeData(&amp;personaldata, options.WithTagName(\"custom\"))\n        if err != nil {\n            panic(err)\n        }\n        fmt.Println(personaldata)\n    }\n}\n\n<\/pre>\n\n\n\n<p>10\u56de\u7e70\u308a\u8fd4\u3059\u5834\u5408\u306e\u51fa\u529b\u7d50\u679c\u3067\u3059\u3002\u826f\u3044\u611f\u3058\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">kayou@DESKTOP-EUK2PH4:~\/go-faker-mongodb\/make-data-by-faker$ go run fake_sample.go \n{LSWguOM hLUxlTZchcZiZZlBajWQYgWocqebgjSjEmupHUsxCZRjxFmQgV 58 male Lura Schmidt 1706}\n{GoVdGFY wdDpnedFNgxmMJuiVRcbZMllxEDIYNGHXkFbCNwCDHyGLlukRY 69 male Johanna Hessel 1129}\n{RplUKqc fROqgCXbQCjPcfyAlVOWiemIhoJuuyGneNvYkWsucWdgSBIGcU 95 male Logan Homenick 1115}\n{ymtjqVL amFRrTeUYiFRWJSlPYFBoItxkMxkdhkeLVrGTgImpvIBZOLoww 55 female Eveline Hirthe 4426}\n{TrsEQeA qhqXqGsTCRcMHPVWnItlNSKPToQrZenBAgtAEIICpdOdZfPWZj 83 female Ida Green 1258}\n{NgwymBO ETJPhqBrTvHqWoVfUNKOMBPeYSwQhKbprnKVwvNQamhHQHsBBg 30 male Sienna Gusikowski 4115}\n{gKKCwlE ZekMjNqSIkOlYqASIeRFVMDklHBcLTNyrZvrjevLFRNaNEkWQA 98 male Lizzie Stokes 4733}\n{YHZEdjT JYcTgEKJdCvyCkPbTORVmZhlxGLsucrJHNmtfbCYuFsHdBRlhT 95 male Amalia Reichert 2198}\n{HEXKeFt OCaCuOGVkyKqwNTwUZqmVjniBviBNjDhFQPKLnwMXkRixfkGwx 51 male Marta Schamberger 480}\n{oYVPRgX xVxEcRAXCOuenNhNQMuKjHvoTYTZhRvSYrDqNBGOdteXRPTVXv 55 female Arielle Hegmann 2540}<\/pre>\n\n\n\n<p>MongoDB\u306b\u30c7\u30fc\u30bf\u3092\u633f\u5165\u3059\u308b\u30b3\u30fc\u30c9\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002\u63a5\u7d9a\u5148\u306eMongoDB\uff08\u30b3\u30fc\u30c9\u5185\u3067\u306frep1sv.mongo.lab\uff09\u306f\u3001WSL\u304c\u4e57\u3063\u3066\u3044\u308bWindows PC\u3068\u540c\u3058\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30bb\u30b0\u30e1\u30f3\u30c8\u306b\u3042\u308bMongoDB Server\uff086.0.14\uff09\u3067\u3059\u3002\u30d6\u30ed\u30b0\u5185\u3067\u306f\u767b\u5834\u3057\u307e\u305b\u3093\u304c\u3001\u4ed6\u306b2\u53f0\u306e\u30bb\u30ab\u30f3\u30c0\u30ea\u304c\u304a\u308a\u30013\u53f0\u306e\u30ec\u30d7\u30ea\u30ab\u30bb\u30c3\u30c8\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"golang\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">package main\n\n\nimport (\n    \"context\"\n    \"fmt\"\n\n\n    \"github.com\/go-faker\/faker\/v4\"\n    \"github.com\/go-faker\/faker\/v4\/pkg\/options\"\n    \"go.mongodb.org\/mongo-driver\/mongo\"\n    mongoOptions \"go.mongodb.org\/mongo-driver\/mongo\/options\"\n)\n\n\ntype PersonalData struct {\n    Username  string `custom:\"username\"`\n    Password  string `custom:\"password\"`\n    Age       int    `custom:\"boundary_start=18,boundary_end=100\"`\n    Gender    string `custom:\"oneof:female, male\"`\n    Firstname string `custom:\"first_name\"`\n    Lastname  string `custom:\"last_name\"`\n    Income    int    `custom:\"boundary_start=200,boundary_end=5000\"`\n}\n\n\nfunc main() {\n\n\n    for i := 0; i &lt; 10; i++ {\n\n\n        var personaldata PersonalData\n        err := faker.FakeData(&amp;personaldata, options.WithTagName(\"custom\"))\n        if err != nil {\n            panic(err)\n        }\n        fmt.Println(personaldata)\n\n\n        \/\/ MongoDB\u63a5\u7d9a\u8a2d\u5b9a\n        uri := \"mongodb:\/\/rep1sv.mongo.lab:27017\/\"\n        DatabaseName := \"test\"\n        CollectionName := \"testcoll\"\n\n\n        client, err := mongo.Connect(context.TODO(), mongoOptions.Client().ApplyURI(uri))\n        if err != nil {\n            panic(err)\n        }\n\n\n        \/\/ \u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u3068\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u6307\u5b9a\n        coll := client.Database(DatabaseName).Collection(CollectionName)\n        result, err := coll.InsertOne(context.TODO(), personaldata)\n        if err != nil {\n            panic(err)\n        }\n\n\n        fmt.Println(result.InsertedID)\n\n\n        \/\/\n    }\n}<\/pre>\n\n\n\n<p>\u5b9f\u884c\u3057\u3066\u307f\u307e\u3057\u305f\u3002\u601d\u3063\u305f\u901a\u308a\u306b\u52d5\u3044\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">kayou@DESKTOP-EUK2PH4:~\/go-faker-mongodb\/make-data-by-faker$ go run fake_sample.go \n{ekBEckJ aLQhGTTYWKkDJqBBCyAGASpBisSkuVnsqHIENCKIneUoQxFxUK 26 male Manuel Fahey 2182}\nObjectID(\"660225d588b90bfd9a524653\")\n{SmbBcdn fjrwbyOuDUFPFwZWUkQKUpvJOwAstDfqdJHxBsSGlcXeScvfil 66 female Ruthe Hermiston 3870}\nObjectID(\"660225d588b90bfd9a524655\")\n{BUYmMsj HWvkZhSuujolZPixLArdaFYIVqQMwTISagtfdPJQHPZEpvBKeq 68 female Aurelie Moen 2328}\nObjectID(\"660225d588b90bfd9a524657\")\n{MDQbflZ gjSdSlvviahSOJcaveyYetNTWHPWQtdVabgMqAXsTgFdYLnaSG 58 male Brennan Ullrich 3608}\nObjectID(\"660225d588b90bfd9a524659\")\n{groUghY CIYecBwwKLvsoVxeRwPgZyGGnFBDGtsGjKSAaBSEXxYcqZTYZv 33 male Britney Dickens 2930}\nObjectID(\"660225d588b90bfd9a52465b\")\n{foLkXqw fxMPkBGgsEwTqCSbahPZsMwWwcTmaFXOeAadmBfyOlebyRXcbF 62 male Bethany Durgan 468}\nObjectID(\"660225d588b90bfd9a52465d\")\n{RfmquVA OQoHBgRGZuOKIryOmXFjmieYbuMsuBIRbMxNbyytVnZxHDJAJR 55 female Vernon Feest 2075}\nObjectID(\"660225d588b90bfd9a52465f\")\n{vQsafxr mijoOlNVJfEcKCKunChOPsNetwqPeESPQPNUCVCGGfGDuSMTwS 76 female Porter Borer 2526}\nObjectID(\"660225d588b90bfd9a524661\")\n{KXCsjpn wqBeSPYuUknAgQMkoPBOwbdMODfsWUOBNjDfcRjJEECZpCxEoP 82 male Assunta Murphy 3667}\nObjectID(\"660225d588b90bfd9a524663\")\n{FpOZjWo YEaCEVxAdnjEsCRtctfNlDUpSHfOuSsstyFrrIAAZpMITjnaJY 60 male Dovie Wuckert 2127}\nObjectID(\"660225d588b90bfd9a524665\")<\/pre>\n\n\n\n<p>\u3042\u3068\u306ffor\u6587\u3067\u7e70\u308a\u8fd4\u3059\u56de\u6570\u3092\u5897\u3084\u305b\u3070\u76ee\u7684\u9054\u6210\u3067\u3059\u306d\u3002<br>\u2026\u304a\u5bdf\u3057\u306e\u826f\u3044\u65b9\u306f\u3001\u3053\u306e\u8fba\u304b\u3089\u300c<strong>\u3070\u3063\u304b\u3082\u3093\uff01<\/strong>\u300d\u3068\u601d\u3046\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\u3060\u3044\u305f\u3044\u601d\u3063\u305f\u901a\u308a\u306e\u3053\u3068\u304c\u8d77\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>(\u00b4\uff9f\u0434\uff9f\uff40)\uff1c\u3000\u3055\u3059\u304c\u306b1\u4e07\u4ef6\u306f\u6642\u9593\u304c\u304b\u304b\u308b\u306a\u3042\u2026\u30b3\u30fc\u30d2\u30fc\u3067\u3082\u98f2\u3093\u3067\u5f85\u3063\u3066\u3088\u3063\u3068<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">panic: connection() error occurred during connection handshake: dial tcp 192.168.50.119:27017: i\/o timeout\n\ngoroutine 1 [running]:\nmain.main()\n        \/home\/kayou\/go-faker-mongodb\/make-data-by-faker\/fake_sample.go:48 +0x2df\nexit status 2\n\nreal    3m16.508s\nuser    1m17.444s\nsys     0m56.345s<\/pre>\n\n\n\n<p>(\uff1b\u00b4\uff9f\u0434\uff9f\uff40)\uff1c\u30003\u5206\u3082\u304b\u304b\u3063\u3066\u7570\u5e38\u7d42\u4e86\u3057\u3068\u308b\u2026<\/p>\n\n\n\n<p>\u6642\u9593\u8a08\u6e2c\u306b\u306ftime\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u307e\u3057\u305f\u3002\u300ctime go run main.go\u300d\u3067\u5b9f\u884c\u3057\u3066\u3044\u307e\u3059\u3002\u4f55\u56de\u304b\u3084\u308a\u76f4\u3057\u3066\u307f\u307e\u3057\u305f\u304c\u3001\u5168\u30663\u5206\u53f0\u3067\u7570\u5e38\u7d42\u4e86\u3057\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u30d1\u30e9\u30e1\u30fc\u30bf\u30c1\u30e5\u30fc\u30cb\u30f3\u30b0<\/h3>\n\n\n\n<p>(\uff1b\u00b4\uff9f\u0434\uff9f\uff40)\uff1c\u3000\u30c7\u30fc\u30bf\u633f\u5165\u30823000\u4ef6\u3057\u304b\u7d42\u308f\u3063\u3066\u306a\u3044\u2026\u3069\u3046\u3057\u3066\u2026\u30a8\u30e9\u30fc\u898b\u308b\u3068i\/o timeout\u3063\u3066\u66f8\u3044\u3066\u3042\u308b\u3057\u3001\u51e6\u7406\u304c\u9577\u3059\u304e\u3066\u30bb\u30c3\u30b7\u30e7\u30f3\u304c\u30bf\u30a4\u30e0\u30a2\u30a6\u30c8\u3057\u3066\u3044\u308b\u306e\u304b\uff1f<\/p>\n\n\n\n<p>Go Driver\u306e\u30bf\u30a4\u30e0\u30a2\u30a6\u30c8\u3084\u30bb\u30c3\u30b7\u30e7\u30f3\u3001MongoDB Server\u5074\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u898b\u76f4\u3057\u3066\u307f\u305f\u3051\u3069\u6539\u5584\u3057\u307e\u305b\u3093\u3067\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u89e3\u6c7a\u306b\u306f\u81f3\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u304c\u3001\u3053\u308c\u306f\u3053\u308c\u3067\u52c9\u5f37\u306b\u306a\u3063\u305f\u306e\u3067\u3001\u8abf\u3079\u305f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u4e00\u89a7\u3092\u8f09\u305b\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">MongoDB Server\u5074\u3067\u306e\u30b3\u30cd\u30af\u30b7\u30e7\u30f3\u306e\u6700\u5927\u6570\u306e\u8a2d\u5b9a<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.mongodb.com\/docs\/manual\/reference\/configuration-options\/#mongodb-setting-net.maxIncomingConnections\" target=\"_blank\" rel=\"noreferrer noopener\">Configuration File Options \u2014 MongoDB Manual<\/a><\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">\u30b3\u30cd\u30af\u30b7\u30e7\u30f3\u30d7\u30fc\u30eb<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.mongodb.com\/docs\/manual\/administration\/connection-pool-overview\/\" target=\"_blank\" rel=\"noreferrer noopener\">Connection Pool Overview \u2014 MongoDB Manual<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.mongodb.com\/docs\/manual\/tutorial\/connection-pool-performance-tuning\/\" target=\"_blank\" rel=\"noreferrer noopener\">Tuning Your Connection Pool Settings \u2014 MongoDB Manual<\/a><\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">Go Driver\u306e\u30bf\u30a4\u30e0\u30a2\u30a6\u30c8\u8a2d\u5b9a<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/pkg.go.dev\/go.mongodb.org\/mongo-driver@v1.10.3\/mongo\/options#ClientOptions.SetConnectTimeout\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/pkg.go.dev\/go.mongodb.org\/mongo-driver@v1.10.3\/mongo\/options#ClientOptions.SetConnectTimeout<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/support.mongodb.com\/article\/000018542\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/support.mongodb.com\/article\/000018542<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/support.mongodb.com\/article\/000020717\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/support.mongodb.com\/article\/000020717<\/a><\/li>\n<\/ul>\n\n\n\n<p>\u203bsupport.mongodb.com\u306eknowladge\u306f\u30b5\u30a4\u30f3\u30a2\u30c3\u30d7\u3057\u306a\u3044\u3068\u898b\u3089\u308c\u307e\u305b\u3093\u3002\u3054\u4e86\u627f\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">ulimit\u306e\u63a8\u5968\u8a2d\u5b9a<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.mongodb.com\/docs\/manual\/reference\/ulimit\/#recommended-ulimit-settings\" target=\"_blank\" rel=\"noreferrer noopener\">UNIX ulimit Settings \u2014 MongoDB Manual<\/a><\/li>\n<\/ul>\n\n\n\n<p>MongoDB Server\u5074\u3067mongod\u306e\u30bb\u30c3\u30b7\u30e7\u30f3\u304c\u6700\u5927\u30671\u4e07\u4ef6\u4ee5\u4e0a\u5f35\u3089\u308c\u3066\u3044\u308b\u306e\u3092\u898b\u3064\u3051\u307e\u3057\u305f\u3002\u30d5\u30a1\u30a4\u30eb\u30c7\u30a3\u30b9\u30af\u30ea\u30d7\u30bf\u306e\u4e0a\u9650\u306b\u9054\u3057\u3066\u3044\u308b\u304b\u3068\u601d\u3044\u3001\u3053\u3061\u3089\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u63a8\u5968\u306e\u5024\u306b\u5909\u66f4\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">oplog\u306e\u30b5\u30a4\u30ba\u5909\u66f4<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.mongodb.com\/docs\/manual\/tutorial\/change-oplog-size\/\" target=\"_blank\" rel=\"noreferrer noopener\">Change the Size of the Oplog \u2014 MongoDB Manual<\/a><\/li>\n<\/ul>\n\n\n\n<p>oplog\u306e\u30d0\u30c3\u30d5\u30a1\u304c\u3042\u3075\u308c\u305f\u30a8\u30e9\u30fc\uff08\u2193\u53c2\u7167\uff09\u304c\u51fa\u3066\u3044\u305f\u305f\u3081\u3001oplog\u304c\u8db3\u308a\u306a\u3044\u3053\u3068\u304c\u539f\u56e0\u304b\u3068\u601d\u3044\u30b5\u30a4\u30ba\u30a2\u30c3\u30d7\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">{\n  \"t\": {\n    \"$date\": \"2024-03-21T15:53:25.865+09:00\"\n  },\n  \"s\": \"I\",\n  \"c\": \"REPL\",\n  \"id\": 21239,\n  \"ctx\": \"ReplBatcher\",\n  \"msg\": \"Oplog buffer has been drained\",\n  \"attr\": {\n    \"term\": 9\n  }\n}<\/pre>\n\n\n\n<p>(\u00b4\uff9f\u0434\uff9f\uff40) &lt;\u3053\u308c\u3060\u3051\u8272\u3005\u3044\u3058\u3063\u3066\u3082\u30c0\u30e1\u2026\u3082\u3082\u3082\u3001\u3082\u3057\u304b\u3057\u3066\u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u60aa\u3044\uff1f<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u89e3\u6c7a\u7b56<\/h3>\n\n\n\n<p>\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306f\u3054\u7121\u6c99\u6c70\u3060\u3063\u305f\u305f\u3081\u3001chatGPT\u3092\u5148\u751f\u306b\u3057\u306a\u304c\u3089\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u66f8\u304d\u76f4\u3059\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002\u66f8\u304d\u76f4\u3057\u305f\u30b3\u30fc\u30c9\u304c\u3053\u3061\u3089\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"golang\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">package main\n\n\nimport (\n    \"context\"\n    \"fmt\"\n\n\n    \"github.com\/go-faker\/faker\/v4\"\n    \"github.com\/go-faker\/faker\/v4\/pkg\/options\"\n    \"go.mongodb.org\/mongo-driver\/mongo\"\n    mongoOptions \"go.mongodb.org\/mongo-driver\/mongo\/options\"\n)\n\n\ntype Person struct {\n    Username  string `custom:\"username\"`\n    Password  string `custom:\"password\"`\n    Age       int    `custom:\"boundary_start=18,boundary_end=100\"`\n    Gender    string `custom:\"oneof:female, male\"`\n    Firstname string `custom:\"first_name\"`\n    Lastname  string `custom:\"last_name\"`\n    Income    int    `custom:\"boundary_start=200,boundary_end=5000\"`\n}\n\n\nfunc main() {\n\n\n    \/\/ MongoDB\u63a5\u7d9a\u8a2d\u5b9a\n    uri := \"mongodb:\/\/rep1sv.mongo.lab:27017\/\"\n    DatabaseName := \"test\"\n    CollectionName := \"testcoll\"\n\n\n    client, err := mongo.Connect(context.TODO(), mongoOptions.Client().ApplyURI(uri))\n    if err != nil {\n        panic(err)\n    }\n\n\n    \/\/ \u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u3068\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u6307\u5b9a\n    coll := client.Database(DatabaseName).Collection(CollectionName)\n\n\n    \/\/ fake\u30c7\u30fc\u30bf\u306e\u4f5c\u6210\n    var people []interface{}\n\n\n    for i := 0; i &lt; 100000; i++ {\n        var person Person\n        err := faker.FakeData(&amp;person, options.WithTagName(\"custom\"))\n        if err != nil {\n            panic(err)\n        }\n        people = append(people, person)\n    }\n\n\n    result, err := coll.InsertMany(context.TODO(), people)\n    if err != nil {\n        panic(err)\n    }\n\n\n    for _, id := range result.InsertedIDs {\n        fmt.Println(id)\n    }\n}\n<\/pre>\n\n\n\n<p>\u5143\u306e\u30b3\u30fc\u30c9\u3068\u6bd4\u8f03\u3057\u3066\u5927\u304d\u304f\u5909\u66f4\u3057\u305f\u70b9\u306f2\u3064\u3067\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>interface\u578b\u306e\u30b9\u30e9\u30a4\u30b9\u3092\u5ba3\u8a00\u3057\u3001faker\u3067\u4f5c\u3063\u305f\u30c7\u30fc\u30bf\u3092append\u3067\u305d\u3061\u3089\u306b\u683c\u7d0d\u3057\u305f<\/li>\n\n\n\n<li>\u30c7\u30fc\u30bf\u306e\u633f\u5165\u6642\u306b\u4f7f\u7528\u3059\u308b\u95a2\u6570\u3092InsertOne\u304b\u3089InsertMany\u306b\u3057\u305f<\/li>\n<\/ol>\n\n\n\n<p>\u6065\u305a\u304b\u3057\u306a\u304c\u3089\u3001chatGPT\u5148\u751f\u306b\u63d0\u6848\u3057\u3066\u3082\u3089\u3063\u305f\u66f8\u304d\u65b9\u3067\u3059\u3002\u3069\u3061\u3089\u3082\u300c\u305d\u3093\u306a\u66f8\u304d\u65b9\u304c\u51fa\u6765\u308b\u306e\u304b\uff01\u300d\u3068\u611f\u5fc3\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>50\u4e07\u4ef6\u306e\u30c7\u30fc\u30bf\u633f\u5165\u304c26\u79d2\u3067\u7d42\u308f\u308a\u307e\u3057\u305f\u3002\u901f\u3044\uff01<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">kayou@DESKTOP-EUK2PH4:~\/go-faker-mongodb\/make-data-by-faker$ time go run main.go\n\u2026\nObjectID(\"66025d6667752c8ba1863905\")\nObjectID(\"66025d6667752c8ba1863906\")\n\nreal    0m26.860s\nuser    0m17.716s\nsys     0m4.857s<\/pre>\n\n\n\n<p>MongoDB\u5185\u306e\u30c7\u30fc\u30bf\u3092\u78ba\u8a8d\u3057\u3066\u307f\u308b\u3068\u3001\u78ba\u304b\u306b50\u4e07\u4ef6\u633f\u5165\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u5206\u304b\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"643\" src=\"\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/03\/image-31-1024x643.png\" alt=\"\" class=\"wp-image-71153\" srcset=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/03\/image-31-1024x643.png 1024w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/03\/image-31-360x226.png 360w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/03\/image-31-768x483.png 768w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/03\/image-31.png 1138w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u30d7\u30ed\u30b0\u30e9\u30e0\u5b9f\u884c\u6642\u306b\u3001MongoDB Server\u5074\u3067mongod\u306e\u30d7\u30ed\u30bb\u30b9\u306e\u30bb\u30c3\u30b7\u30e7\u30f3\u6570\u304c\u6700\u5927\u30671\u4e07\u4ef6\u4ee5\u4e0a\u3042\u308b\u306e\u3082\u6c17\u306b\u306a\u3063\u3066\u3044\u307e\u3057\u305f\u304c\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u6539\u4fee\u5f8c\u306f3\u4ef6\u7a0b\u5ea6\u5897\u52a0\u3059\u308b\u3060\u3051\u3067\u3057\u305f\u3002\u5c11\u306a\u3044\u30bb\u30c3\u30b7\u30e7\u30f3\u6570\u3067\u30c7\u30fc\u30bf\u3092\u6d41\u3059\u65b9\u304c\u52b9\u7387\u304c\u826f\u3044\u3053\u3068\u304c\u5206\u304b\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u304a\u308f\u308a\u306b<\/h3>\n\n\n\n<p>\u79c1\u81ea\u8eab\u304c\u30a4\u30f3\u30d5\u30e9\uff06\u904b\u7528\u7551\u3067\u751f\u307e\u308c\u80b2\u3063\u305f\u305b\u3044\u304b\u3001\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u898b\u305f\u3068\u304d\u306b\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u3084Go Driver\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u3067\u89e3\u6c7a\u3057\u3088\u3046\u3068\u3057\u305f\u3053\u3068\u304c\u3001\u4eca\u56de\u306f\u88cf\u76ee\u306b\u51fa\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u601d\u3044\u8fd4\u3057\u3066\u307f\u308b\u3068\u3001<a href=\"https:\/\/www.mongodb.com\/docs\/manual\/reference\/method\/db.collection.insertMany\/\" target=\"_blank\" rel=\"noreferrer noopener\">insertMany<\/a>\u3068\u3044\u3046MongoDB\u306e\u30af\u30a8\u30ea\u304c\u5b58\u5728\u3059\u308b\u3053\u3068\u81ea\u4f53\u306f\u77e5\u3063\u3066\u3044\u305f\u306e\u3067\u3001\u5927\u91cf\u306e\u30c7\u30fc\u30bf\u3092\u633f\u5165\u3057\u305f\u3044\u6bb5\u968e\u3067\u3053\u3061\u3089\u3092\u4f7f\u3063\u3066\u3044\u308c\u3070\u3001\u3053\u3053\u307e\u3067\u9177\u3044\u30d7\u30ed\u30b0\u30e9\u30e0\u306b\u306f\u306a\u3089\u306a\u304b\u3063\u305f\u306e\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\u52b9\u7387\u306e\u826f\u3044\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u66f8\u304f\u3053\u3068\u306e\u5927\u5207\u3055\u3092\u5b66\u3073\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>GO\u8a00\u8a9e\u306b\u304a\u3051\u308b\u30b9\u30e9\u30a4\u30b9\u3068interface\u578b\u306e\u5408\u308f\u305b\u6280\u306b\u3064\u3044\u3066\u3082\u77e5\u308b\u3053\u3068\u304c\u51fa\u6765\u3066\u826f\u304b\u3063\u305f\u3067\u3059\u3002MongoDB\u306e\u3088\u3046\u306b\u30b9\u30ad\u30fc\u30de\u30ec\u30b9\uff08\u500b\u4eba\u7684\u306b\u3053\u306e\u8868\u73fe\u306f\u3042\u307e\u308a\u597d\u304d\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u304c\u2026\uff09\u306a\u30c7\u30fc\u30bf\u3092\u6271\u3046\u306e\u3067\u3042\u308c\u3070\u3001\u304b\u306a\u308a\u76f8\u6027\u304c\u826f\u3044\u306e\u3067\u306f\u306a\u3044\u304b\u3068\u611f\u3058\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u86c7\u8db3\uff1a\u30a2\u30a4\u30ad\u30e3\u30c3\u30c1\u753b\u50cf\u306b\u3064\u3044\u3066<\/h4>\n\n\n\n<p>\u5bcc\u5c71\u306b\u3042\u308b\u300c<a href=\"https:\/\/www.toyamashi-kankoukyoukai.jp\/?tid=100908\" target=\"_blank\" rel=\"noreferrer noopener\">\u304a\u304a\u3056\u308f\u306e\u77f3\u4ecf\u306e\u68ee\u30fb\u516b\u767e\u7f85\u6f22<\/a>\u300d\u3067\u3059\u3002\u4e94\u767e\u7f85\u6f22\u306e\u307b\u304b\u3001\u5b9f\u696d\u5bb6\u306e\u65b9\u304c\u77e5\u308a\u5408\u3044\u3092\u77f3\u50cf\u306b\u3057\u307e\u304f\u308a\u3001\u98fe\u3063\u305f\u3068\u3044\u3046\u3001\u5bcc\u5c71\u770c\u306e\u4e2d\u3067\u3082\u304b\u306a\u308a\u306e\u73cd\u30b9\u30dd\u30c3\u30c8\u3067\u3059\u3002800\u4f53\u8fd1\u3044\u77f3\u50cf\u306f\u306a\u304b\u306a\u304b\u306b\u8feb\u529b\u304c\u3042\u308a\u307e\u3059\u3002\u30a2\u30a4\u30ad\u30e3\u30c3\u30c1\u306e\u5199\u771f\u306f2018\u5e74\u306b\u81ea\u8eab\u3067\u64ae\u5f71\u3057\u305f\u3082\u306e\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u306f\u3058\u3081\u306b MongoDB\u30c6\u30af\u30cb\u30ab\u30eb\u30b5\u30dd\u30fc\u30c8\u306e\u5c71\u68ee\u3067\u3059\u3002 \u5148\u65e5\u3001MongoDB\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u30c1\u30e5\u30fc\u30cb\u30f3\u30b0\u306b\u95a2\u308f\u308b\u6a5f\u4f1a\u304c\u3042\u308a\u307e\u3057\u305f\u3002\u30af\u30a8\u30ea\u306e\u901f\u5ea6\u304c9\u5272\u65b9\u6539\u5584\u3057\u305f\u306e\u3092\u76ee\u306e\u5f53\u305f\u308a\u306b\u3057\u3001\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u30c1\u30e5\u30fc\u30cb\u30f3\u30b0\u306e\u5965\u6df1\u3055\u3092\u611f\u3058\u307e [&#8230;]<\/p>\n","protected":false},"author":66,"featured_media":71176,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"content-type":"","footnotes":""},"categories":[719,808,79],"tags":[105],"class_list":["post-71148","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-go","category-k-yamamori","category-mongodb","tag-mongodb"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>\u5927\u91cf\u306e\u500b\u4eba\u60c5\u5831\u3092\u751f\u6210\u3057\u3066MongoDB\u306b\u52b9\u7387\u7684\u306b\u633f\u5165\u3059\u308b #golang #MongoDB #Faker - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3<\/title>\n<meta name=\"description\" content=\"Go, k-yamamori, MongoDB |\u306f\u3058\u3081\u306b MongoDB\u30c6\u30af\u30cb\u30ab\u30eb\u30b5\u30dd\u30fc\u30c8\u306e\u5c71\u68ee\u3067\u3059\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.creationline.com\/tech-blog\/others\/go\/71148\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5927\u91cf\u306e\u500b\u4eba\u60c5\u5831\u3092\u751f\u6210\u3057\u3066MongoDB\u306b\u52b9\u7387\u7684\u306b\u633f\u5165\u3059\u308b #golang #MongoDB #Faker - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\" \/>\n<meta property=\"og:description\" content=\"Go, k-yamamori, MongoDB |\u306f\u3058\u3081\u306b MongoDB\u30c6\u30af\u30cb\u30ab\u30eb\u30b5\u30dd\u30fc\u30c8\u306e\u5c71\u68ee\u3067\u3059\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.creationline.com\/tech-blog\/others\/go\/71148\" \/>\n<meta property=\"og:site_name\" content=\"Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/creationline\" \/>\n<meta property=\"article:published_time\" content=\"2024-03-27T05:00:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-03-27T06:09:46+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/03\/Db7xvfzU0AA8hNf.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1536\" \/>\n\t<meta property=\"og:image:height\" content=\"1100\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"k-yamamori\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@creationline\" \/>\n<meta name=\"twitter:site\" content=\"@creationline\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"k-yamamori\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"5\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/others\\\/go\\\/71148#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/others\\\/go\\\/71148\"},\"author\":{\"name\":\"k-yamamori\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#\\\/schema\\\/person\\\/45365650dafa6b8aea08257d8f2eb9e4\"},\"headline\":\"\u5927\u91cf\u306e\u500b\u4eba\u60c5\u5831\u3092\u751f\u6210\u3057\u3066MongoDB\u306b\u52b9\u7387\u7684\u306b\u633f\u5165\u3059\u308b #golang #MongoDB #Faker\",\"datePublished\":\"2024-03-27T05:00:00+00:00\",\"dateModified\":\"2024-03-27T06:09:46+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/others\\\/go\\\/71148\"},\"wordCount\":2659,\"image\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/others\\\/go\\\/71148#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2024\\\/03\\\/Db7xvfzU0AA8hNf.jpg\",\"keywords\":[\"mongodb\"],\"articleSection\":[\"Go\",\"k-yamamori\",\"MongoDB\"],\"inLanguage\":\"ja\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/others\\\/go\\\/71148\",\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/others\\\/go\\\/71148\",\"name\":\"\u5927\u91cf\u306e\u500b\u4eba\u60c5\u5831\u3092\u751f\u6210\u3057\u3066MongoDB\u306b\u52b9\u7387\u7684\u306b\u633f\u5165\u3059\u308b #golang #MongoDB #Faker - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/others\\\/go\\\/71148#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/others\\\/go\\\/71148#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2024\\\/03\\\/Db7xvfzU0AA8hNf.jpg\",\"datePublished\":\"2024-03-27T05:00:00+00:00\",\"dateModified\":\"2024-03-27T06:09:46+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#\\\/schema\\\/person\\\/45365650dafa6b8aea08257d8f2eb9e4\"},\"description\":\"Go, k-yamamori, MongoDB |\u306f\u3058\u3081\u306b MongoDB\u30c6\u30af\u30cb\u30ab\u30eb\u30b5\u30dd\u30fc\u30c8\u306e\u5c71\u68ee\u3067\u3059\u3002\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/others\\\/go\\\/71148#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/others\\\/go\\\/71148\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/others\\\/go\\\/71148#primaryimage\",\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2024\\\/03\\\/Db7xvfzU0AA8hNf.jpg\",\"contentUrl\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2024\\\/03\\\/Db7xvfzU0AA8hNf.jpg\",\"width\":1536,\"height\":1100},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/others\\\/go\\\/71148#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"HOME\",\"item\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u305d\u306e\u4ed6\",\"item\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/others\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Go\",\"item\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/others\\\/go\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"\u5927\u91cf\u306e\u500b\u4eba\u60c5\u5831\u3092\u751f\u6210\u3057\u3066MongoDB\u306b\u52b9\u7387\u7684\u306b\u633f\u5165\u3059\u308b #golang #MongoDB #Faker\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#website\",\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/\",\"name\":\"Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\",\"description\":\"\u30a2\u30b8\u30e3\u30a4\u30eb\uff06DevOps\u3001\u30af\u30e9\u30a6\u30c9\u30cd\u30a4\u30c6\u30a3\u30d6\u3001AI\uff06LLM\u306e\u5148\u7aef\u6280\u8853\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#\\\/schema\\\/person\\\/45365650dafa6b8aea08257d8f2eb9e4\",\"name\":\"k-yamamori\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2023\\\/06\\\/Kayou-Yamamori_Profile-150x150.jpg\",\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2023\\\/06\\\/Kayou-Yamamori_Profile-150x150.jpg\",\"contentUrl\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2023\\\/06\\\/Kayou-Yamamori_Profile-150x150.jpg\",\"caption\":\"k-yamamori\"},\"description\":\"MongoDB\u65e5\u672c\u8a9e\u30b5\u30dd\u30fc\u30c8\u62c5\u5f53\u3002IT\u30a4\u30f3\u30d5\u30e9\u3084\u904b\u7528\u30fb\u76e3\u8996\u30fb\u4fdd\u5b88\u304c\u597d\u304d\u3067\u3059\u3002 \u7121\u99c4\u306e\u306a\u3044\u69cb\u6210\u3084\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u3092\u898b\u3066\u3046\u3063\u3068\u308a\u3057\u3066\u3044\u307e\u3059\u3002\",\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\\\/k-yamamori\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u5927\u91cf\u306e\u500b\u4eba\u60c5\u5831\u3092\u751f\u6210\u3057\u3066MongoDB\u306b\u52b9\u7387\u7684\u306b\u633f\u5165\u3059\u308b #golang #MongoDB #Faker - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","description":"Go, k-yamamori, MongoDB |\u306f\u3058\u3081\u306b MongoDB\u30c6\u30af\u30cb\u30ab\u30eb\u30b5\u30dd\u30fc\u30c8\u306e\u5c71\u68ee\u3067\u3059\u3002","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:\/\/www.creationline.com\/tech-blog\/others\/go\/71148","og_locale":"ja_JP","og_type":"article","og_title":"\u5927\u91cf\u306e\u500b\u4eba\u60c5\u5831\u3092\u751f\u6210\u3057\u3066MongoDB\u306b\u52b9\u7387\u7684\u306b\u633f\u5165\u3059\u308b #golang #MongoDB #Faker - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","og_description":"Go, k-yamamori, MongoDB |\u306f\u3058\u3081\u306b MongoDB\u30c6\u30af\u30cb\u30ab\u30eb\u30b5\u30dd\u30fc\u30c8\u306e\u5c71\u68ee\u3067\u3059\u3002","og_url":"https:\/\/www.creationline.com\/tech-blog\/others\/go\/71148","og_site_name":"Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","article_publisher":"https:\/\/www.facebook.com\/creationline","article_published_time":"2024-03-27T05:00:00+00:00","article_modified_time":"2024-03-27T06:09:46+00:00","og_image":[{"width":1536,"height":1100,"url":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/03\/Db7xvfzU0AA8hNf.jpg","type":"image\/jpeg"}],"author":"k-yamamori","twitter_card":"summary_large_image","twitter_creator":"@creationline","twitter_site":"@creationline","twitter_misc":{"\u57f7\u7b46\u8005":"k-yamamori","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"5\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.creationline.com\/tech-blog\/others\/go\/71148#article","isPartOf":{"@id":"https:\/\/www.creationline.com\/tech-blog\/others\/go\/71148"},"author":{"name":"k-yamamori","@id":"https:\/\/www.creationline.com\/tech-blog\/#\/schema\/person\/45365650dafa6b8aea08257d8f2eb9e4"},"headline":"\u5927\u91cf\u306e\u500b\u4eba\u60c5\u5831\u3092\u751f\u6210\u3057\u3066MongoDB\u306b\u52b9\u7387\u7684\u306b\u633f\u5165\u3059\u308b #golang #MongoDB #Faker","datePublished":"2024-03-27T05:00:00+00:00","dateModified":"2024-03-27T06:09:46+00:00","mainEntityOfPage":{"@id":"https:\/\/www.creationline.com\/tech-blog\/others\/go\/71148"},"wordCount":2659,"image":{"@id":"https:\/\/www.creationline.com\/tech-blog\/others\/go\/71148#primaryimage"},"thumbnailUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/03\/Db7xvfzU0AA8hNf.jpg","keywords":["mongodb"],"articleSection":["Go","k-yamamori","MongoDB"],"inLanguage":"ja"},{"@type":"WebPage","@id":"https:\/\/www.creationline.com\/tech-blog\/others\/go\/71148","url":"https:\/\/www.creationline.com\/tech-blog\/others\/go\/71148","name":"\u5927\u91cf\u306e\u500b\u4eba\u60c5\u5831\u3092\u751f\u6210\u3057\u3066MongoDB\u306b\u52b9\u7387\u7684\u306b\u633f\u5165\u3059\u308b #golang #MongoDB #Faker - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","isPartOf":{"@id":"https:\/\/www.creationline.com\/tech-blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.creationline.com\/tech-blog\/others\/go\/71148#primaryimage"},"image":{"@id":"https:\/\/www.creationline.com\/tech-blog\/others\/go\/71148#primaryimage"},"thumbnailUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/03\/Db7xvfzU0AA8hNf.jpg","datePublished":"2024-03-27T05:00:00+00:00","dateModified":"2024-03-27T06:09:46+00:00","author":{"@id":"https:\/\/www.creationline.com\/tech-blog\/#\/schema\/person\/45365650dafa6b8aea08257d8f2eb9e4"},"description":"Go, k-yamamori, MongoDB |\u306f\u3058\u3081\u306b MongoDB\u30c6\u30af\u30cb\u30ab\u30eb\u30b5\u30dd\u30fc\u30c8\u306e\u5c71\u68ee\u3067\u3059\u3002","breadcrumb":{"@id":"https:\/\/www.creationline.com\/tech-blog\/others\/go\/71148#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.creationline.com\/tech-blog\/others\/go\/71148"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.creationline.com\/tech-blog\/others\/go\/71148#primaryimage","url":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/03\/Db7xvfzU0AA8hNf.jpg","contentUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/03\/Db7xvfzU0AA8hNf.jpg","width":1536,"height":1100},{"@type":"BreadcrumbList","@id":"https:\/\/www.creationline.com\/tech-blog\/others\/go\/71148#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"HOME","item":"https:\/\/www.creationline.com\/tech-blog"},{"@type":"ListItem","position":2,"name":"\u305d\u306e\u4ed6","item":"https:\/\/www.creationline.com\/tech-blog\/others"},{"@type":"ListItem","position":3,"name":"Go","item":"https:\/\/www.creationline.com\/tech-blog\/others\/go"},{"@type":"ListItem","position":4,"name":"\u5927\u91cf\u306e\u500b\u4eba\u60c5\u5831\u3092\u751f\u6210\u3057\u3066MongoDB\u306b\u52b9\u7387\u7684\u306b\u633f\u5165\u3059\u308b #golang #MongoDB #Faker"}]},{"@type":"WebSite","@id":"https:\/\/www.creationline.com\/tech-blog\/#website","url":"https:\/\/www.creationline.com\/tech-blog\/","name":"Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","description":"\u30a2\u30b8\u30e3\u30a4\u30eb\uff06DevOps\u3001\u30af\u30e9\u30a6\u30c9\u30cd\u30a4\u30c6\u30a3\u30d6\u3001AI\uff06LLM\u306e\u5148\u7aef\u6280\u8853","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.creationline.com\/tech-blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/www.creationline.com\/tech-blog\/#\/schema\/person\/45365650dafa6b8aea08257d8f2eb9e4","name":"k-yamamori","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2023\/06\/Kayou-Yamamori_Profile-150x150.jpg","url":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2023\/06\/Kayou-Yamamori_Profile-150x150.jpg","contentUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2023\/06\/Kayou-Yamamori_Profile-150x150.jpg","caption":"k-yamamori"},"description":"MongoDB\u65e5\u672c\u8a9e\u30b5\u30dd\u30fc\u30c8\u62c5\u5f53\u3002IT\u30a4\u30f3\u30d5\u30e9\u3084\u904b\u7528\u30fb\u76e3\u8996\u30fb\u4fdd\u5b88\u304c\u597d\u304d\u3067\u3059\u3002 \u7121\u99c4\u306e\u306a\u3044\u69cb\u6210\u3084\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u3092\u898b\u3066\u3046\u3063\u3068\u308a\u3057\u3066\u3044\u307e\u3059\u3002","url":"https:\/\/www.creationline.com\/tech-blog\/author\/k-yamamori"}]}},"_links":{"self":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts\/71148","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/users\/66"}],"replies":[{"embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/comments?post=71148"}],"version-history":[{"count":20,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts\/71148\/revisions"}],"predecessor-version":[{"id":71188,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts\/71148\/revisions\/71188"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/media\/71176"}],"wp:attachment":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/media?parent=71148"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/categories?post=71148"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/tags?post=71148"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}