{"id":3058,"date":"2023-10-18T20:22:32","date_gmt":"2023-10-18T12:22:32","guid":{"rendered":"https:\/\/white-night.club\/?p=3058"},"modified":"2023-11-09T11:07:48","modified_gmt":"2023-11-09T03:07:48","slug":"pg14","status":"publish","type":"post","link":"https:\/\/white-night.club\/index.php\/2023\/10\/18\/pg14\/","title":{"rendered":"Golang\u4e2d\u7684iota"},"content":{"rendered":"\n<p>\u8bb0\u5f55\u4e0bgolang\u4e2diota\u7684\u7528\u6cd5\u3002<\/p>\n\n\n\n<div style=\"height:60px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<blockquote class=\"wp-block-quote has-luminous-vivid-amber-color has-text-color\">\n<p>iota<\/p>\n<cite><em>\u8bfb\u4f5c\u201c\u827e\u6b27\u5854\u201d\uff0c\u53d1\u97f3\/a\u026a\u02c8\u0259\u028at\u0259\/<\/em><\/cite><\/blockquote>\n\n\n\n<p>iota\uff0c\u672c\u8d28\u4e0a\u662f\u4e00\u4e2aconst\u5e38\u91cf\uff0c\u4f46\u5b83\u7684\u7279\u70b9\u5728\u4e8e\u5b83\u7684\u503c\u4f1a\u88ab\u7f16\u8bd1\u5668\u4fee\u6539\uff0c\u4ee5\u4e0b\u662f\u4e00\u4e2a\u4f7f\u7528iota\u7684\u4f8b\u5b50\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized has-custom-border\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/white-night.club\/wp-content\/uploads\/2023\/10\/13c76b48db34159e4be2654a6672bf4.png\" alt=\"\" class=\"wp-image-3061\" style=\"border-style:none;border-width:0px;border-radius:0px\" width=\"607\" height=\"305\" srcset=\"https:\/\/white-night.club\/wp-content\/uploads\/2023\/10\/13c76b48db34159e4be2654a6672bf4.png 809w, https:\/\/white-night.club\/wp-content\/uploads\/2023\/10\/13c76b48db34159e4be2654a6672bf4-300x151.png 300w, https:\/\/white-night.club\/wp-content\/uploads\/2023\/10\/13c76b48db34159e4be2654a6672bf4-768x386.png 768w\" sizes=\"(max-width: 607px) 100vw, 607px\" \/><\/figure>\n\n\n\n<p>\u8f93\u51fa\u7ed3\u679c\u5982\u56fe\u3002\u53ef\u4ee5\u770b\u5230\u6bcf\u51fa\u73b0\u4e00\u4e2a\u53d8\u91cfiota\u7684\u503c\u5c31+1\u3002\u5f53iota\u78b0\u5230\u65b0\u7684const\u5173\u952e\u5b57\u65f6\u53c8\u88ab\u91cd\u7f6e\u4e3a0\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full has-custom-border\"><img loading=\"lazy\" decoding=\"async\" width=\"486\" height=\"182\" src=\"https:\/\/white-night.club\/wp-content\/uploads\/2023\/10\/2498e156fefb8509a1cc3492c3e0124.png\" alt=\"\" class=\"wp-image-3062\" style=\"border-style:none;border-width:0px;border-radius:0px\" srcset=\"https:\/\/white-night.club\/wp-content\/uploads\/2023\/10\/2498e156fefb8509a1cc3492c3e0124.png 486w, https:\/\/white-night.club\/wp-content\/uploads\/2023\/10\/2498e156fefb8509a1cc3492c3e0124-300x112.png 300w\" sizes=\"(max-width: 486px) 100vw, 486px\" \/><\/figure>\n\n\n\n<p>\u4e0d\u8fc7\u5148\u4e0d\u7740\u6025\u603b\u7ed3\u3002\u5982\u679c\u6b64\u65f6\u6211\u4eec\u628aStringType DBType\u8d4b\u503c\u4e3a9\u5462\uff1fUnknownType\u6700\u540e\u7684\u7ed3\u679c\u8fd8\u4f1a\u662f2\u5417\uff1f<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized has-custom-border\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/white-night.club\/wp-content\/uploads\/2023\/10\/79066238658cdd0a788aebcd3832c7b.png\" alt=\"\" class=\"wp-image-3063\" style=\"border-style:none;border-width:0px;border-radius:0px\" width=\"590\" height=\"304\" srcset=\"https:\/\/white-night.club\/wp-content\/uploads\/2023\/10\/79066238658cdd0a788aebcd3832c7b.png 787w, https:\/\/white-night.club\/wp-content\/uploads\/2023\/10\/79066238658cdd0a788aebcd3832c7b-300x154.png 300w, https:\/\/white-night.club\/wp-content\/uploads\/2023\/10\/79066238658cdd0a788aebcd3832c7b-768x395.png 768w\" sizes=\"(max-width: 590px) 100vw, 590px\" \/><\/figure>\n\n\n\n<p>\u6211\u4eec\u6765\u770b\u4e0b\u7ed3\u679c\uff0cUnknownType\u7684\u7ed3\u679c\u4ecd\u7136\u662f2\uff0c\u8bf4\u660eiota\u5728\u7ecf\u8fc7StringType\u7684\u65f6\u5019\u4ecd\u7136\u81ea\u589e\u4e86\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized has-custom-border\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/white-night.club\/wp-content\/uploads\/2023\/10\/7cedbd4df6615d41923dc1d1db193db.png\" alt=\"\" class=\"wp-image-3064\" style=\"border-style:none;border-width:0px;border-radius:0px\" width=\"495\" height=\"172\" srcset=\"https:\/\/white-night.club\/wp-content\/uploads\/2023\/10\/7cedbd4df6615d41923dc1d1db193db.png 495w, https:\/\/white-night.club\/wp-content\/uploads\/2023\/10\/7cedbd4df6615d41923dc1d1db193db-300x104.png 300w\" sizes=\"(max-width: 495px) 100vw, 495px\" \/><\/figure>\n\n\n\n<p>\u603b\u7684\u6765\u8bf4\uff0c<mark style=\"background-color:rgba(0, 0, 0, 0);color:#fcb900\" class=\"has-inline-color\">iota\u4f1a\u5728const\u5173\u952e\u5b57\u51fa\u73b0\u7684\u65f6\u5019\u88ab\u91cd\u7f6e\u4e3a0<\/mark>\u3002\u5982\u679c\u4f60\u5728const\u4e2d\u5b9a\u4e49\u4e86\u591a\u4e2a\u53d8\u91cf\uff0c\u90a3\u4e48<mark style=\"background-color:rgba(0, 0, 0, 0);color:#fcb900\" class=\"has-inline-color\">\u65e0\u8bba\u4f60\u6709\u6ca1\u6709\u7ed9\u53d8\u91cf\u8d4b\u503c\uff0ciota\u90fd\u4f1aiota++<\/mark>\u3002<\/p>\n\n\n\n<p>\u4e3a\u5565\u8981\u8fd9\u4e48\u7528\uff1f\u56de\u60f3\u4e00\u4e0b\u6570\u636e\u5e93\u7684id\u81ea\u589e\uff0c\u53c8\u6216\u8005\u662f\u9700\u8981\u7ed9\u4e00\u7ec4\u5e38\u91cf\u8d4bid\u5199for\u5faa\u73af\u65f6\uff1b\u603b\u7684\u6765\u8bf4\u7528\u4e86iota\u4e4b\u540e\u5c31\u7701\u7684\u53bb\u5199\u8fd9\u4e48\u4e2afor\u5faa\u73af\u4e86\u3002<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Golang\u4e2d\u7684\u8bed\u6cd5\u7cd6\uff1aiota<\/p>\n","protected":false},"author":1,"featured_media":3061,"comment_status":"open","ping_status":"","sticky":false,"template":"base","format":"standard","meta":{"footnotes":""},"categories":[44,33],"tags":[34],"_links":{"self":[{"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/posts\/3058"}],"collection":[{"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/comments?post=3058"}],"version-history":[{"count":0,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/posts\/3058\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/media\/3061"}],"wp:attachment":[{"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/media?parent=3058"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/categories?post=3058"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/tags?post=3058"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}