{"id":1701,"date":"2023-06-27T13:54:14","date_gmt":"2023-06-27T05:54:14","guid":{"rendered":"https:\/\/xinchewhd.com.cn\/?p=1701"},"modified":"2023-06-27T13:54:14","modified_gmt":"2023-06-27T05:54:14","slug":"golang%e9%9d%a2%e8%af%95%e5%ae%9d%e5%85%b8-go%e8%af%ad%e8%a8%80%e5%9f%ba%e6%9c%ac%e6%95%b0%e6%8d%ae%e7%b1%bb%e5%9e%8b","status":"publish","type":"post","link":"https:\/\/xinchewhd.com.cn\/index.php\/go\/golang%e9%9d%a2%e8%af%95%e5%ae%9d%e5%85%b8-go%e8%af%ad%e8%a8%80%e5%9f%ba%e6%9c%ac%e6%95%b0%e6%8d%ae%e7%b1%bb%e5%9e%8b\/","title":{"rendered":"Golang\u9762\u8bd5\u5b9d\u5178\u2014\u2014Go\u8bed\u8a00\u57fa\u672c\u6570\u636e\u7c7b\u578b"},"content":{"rendered":"<div class='wxsyncmain'>\n<section data-tool=\"mdnice\u7f16\u8f91\u5668\" data-website=\"https:\/\/www.mdnice.com\" style=\"color: black;padding-right: 10px;padding-left: 10px;line-height: 1.6;letter-spacing: 0px;word-break: break-word;overflow-wrap: break-word;text-align: left;font-size: 14px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;\">\n<h1 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"color: rgb(110, 150, 124);text-align: center;font-weight: bold;margin: 0.5em;\"><span style=\"padding-right: 1em;\">\/ <\/span><span style=\"display: none;\"><\/span>\u5173\u4e8eGolang\u9762\u8bd5\u5b9d\u5178<span style=\"padding-left: 1em;\">\/<\/span><\/h1>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;text-align: justify;\">\u6700\u8fd1\u51e0\u5e74\uff0cGo\u7684\u70ed\u5ea6\u6301\u7eed\u98d9\u5347\uff0c\u56fd\u5185\u5916\u5f88\u591a\u5927\u516c\u53f8\u90fd\u5728\u5927\u89c4\u6a21\u7684\u4f7f\u7528Go\u3002Google\u662fGo\u8bed\u8a00\u8bde\u751f\u7684\u5730\u65b9\uff0c\u5176\u4ed6\u516c\u53f8\u5982Facebook\u3001\u817e\u8baf\u3001\u963f\u91cc\u3001\u5b57\u8282\u8df3\u52a8\u3001\u767e\u5ea6\u3001\u4eac\u4e1c\u3001\u5c0f\u7c73\u7b49\u90fd\u5728\u62e5\u62b1\u548c\u8f6c\u5411Go\u3002Go\u8bed\u8a00\u7684\u5f00\u6e90\u9879\u76ee\u4e5f\u975e\u5e38\u591a\uff0c\u5982kubernetes\u3001docker\u3001etcd\u3002<\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;text-align: justify;\">\u968f\u7740\u5e02\u573a\u5bf9Go\u8bed\u8a00\u4eba\u624d\u9700\u6c42\u7684\u589e\u957f\uff0c\u5f88\u591a\u5f00\u53d1\u8005\u90fd\u6295\u5165\u4e86Go\u8bed\u8a00\u7684\u6000\u62b1\u3002\u672c\u7cfb\u5217\u6587\u7ae0\u5c06\u4ee5\u7b2c\u4e00\u89c6\u89d2\u4e0e\u5927\u5bb6\u4e00\u540c\u5f00\u59cbGolang\u7684\u9762\u8bd5\u4e4b\u8def\uff0c\u5e0c\u671b\u5927\u5bb6\u80fd\u591f\u6709\u6240\u6536\u83b7\uff0c\u62ff\u4e0b\u5fc3\u4eea\u7684offer\u3002<\/p>\n<h1 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"color: rgb(110, 150, 124);text-align: center;font-weight: bold;margin: 0.5em;\"><span style=\"padding-right: 1em;\">\/ <\/span><span style=\"display: none;\"><\/span>Go\u8bed\u8a00\u57fa\u672c\u6570\u636e\u7c7b\u578b<span style=\"padding-left: 1em;\">\/<\/span><\/h1>\n<h2 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"color: rgba(0, 0, 0, 0.6);font-weight: bold;margin-top: 0.5em;margin-bottom: 0.5em;\"><span style=\"display: none;\"><\/span>\u6570\u503c\u578b-\u6574\u6570\u7c7b\u578b<\/h2>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;text-align: justify;\">Golang\u5404\u6574\u6570\u7c7b\u578b\u5206\u6709\u7b26\u53f7\u548c\u65e0\u7b26\u53f7\uff0cint uint\u7684\u5927\u5c0f\u548c\u7cfb\u7edf\u6709\u5173<\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;text-align: justify;\">Golang\u7684\u6574\u5f62\u9ed8\u8ba4\u58f0\u660e\u4e3aint\u578b<\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;text-align: justify;\">Golang\u7a0b\u5e8f\u4e2d\u6574\u578b\u53d8\u91cf\u5728\u4f7f\u7528\u65f6\uff0c\u9075\u5b88\u4fdd\u5c0f\u4e0d\u4fdd\u5927\u7684\u539f\u5219\uff0c\u5373\uff1a\u5728\u4fdd\u8bc1\u7a0b\u5e8f\u6b63\u786e\u8fd0\u884c\u7684\u524d\u63d0\u4e0b\uff0c\u5c3d\u91cf\u4f7f\u7528\u5360\u7528\u7a7a\u95f4\u5c0f\u7684\u6570\u636e\u7c7b\u578b<\/p>\n<section data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"overflow-x: auto;\">\n<table width=\"100\">\n<thead>\n<tr style=\"background-color: white;border-width: 0px;border-style: initial;border-color: initial;\">\n<th style=\"font-size: 16px;text-align: left;background-color: rgb(240, 240, 240);border-width: 0px;border-style: initial;border-color: initial;min-width: 85px;\">\u7c7b\u578b<\/th>\n<th style=\"font-size: 16px;text-align: left;background-color: rgb(240, 240, 240);border-width: 0px;border-style: initial;border-color: initial;min-width: 85px;\">\u5360\u7528\u50a8\u5b58\u7a7a\u95f4<\/th>\n<th style=\"font-size: 16px;text-align: left;background-color: rgb(240, 240, 240);border-width: 0px;border-style: initial;border-color: initial;min-width: 85px;\">\u8303\u56f4<\/th>\n<\/tr>\n<\/thead>\n<tbody style=\"border-width: 0px;border-style: initial;border-color: initial;\">\n<tr style=\"background-color: white;border-width: 0px;border-style: initial;border-color: initial;\">\n<td style=\"font-size: 16px;border-width: 0px;border-style: initial;border-color: initial;min-width: 85px;\">int8<\/td>\n<td style=\"font-size: 16px;border-width: 0px;border-style: initial;border-color: initial;min-width: 85px;\">1\u5b57\u8282<\/td>\n<td style=\"font-size: 16px;border-width: 0px;border-style: initial;border-color: initial;min-width: 85px;\">-2^7~2^7-1<\/td>\n<\/tr>\n<tr style=\"border-width: 0px;border-style: initial;border-color: initial;background-color: rgb(248, 248, 248);\">\n<td style=\"font-size: 16px;border-width: 0px;border-style: initial;border-color: initial;min-width: 85px;\">int16<\/td>\n<td style=\"font-size: 16px;border-width: 0px;border-style: initial;border-color: initial;min-width: 85px;\">2\u5b57\u8282<\/td>\n<td style=\"font-size: 16px;border-width: 0px;border-style: initial;border-color: initial;min-width: 85px;\">-2^15~2^15-1<\/td>\n<\/tr>\n<tr style=\"background-color: white;border-width: 0px;border-style: initial;border-color: initial;\">\n<td style=\"font-size: 16px;border-width: 0px;border-style: initial;border-color: initial;min-width: 85px;\">int32<\/td>\n<td style=\"font-size: 16px;border-width: 0px;border-style: initial;border-color: initial;min-width: 85px;\">4\u5b57\u8282<\/td>\n<td style=\"font-size: 16px;border-width: 0px;border-style: initial;border-color: initial;min-width: 85px;\">-2^31~2^31-1<\/td>\n<\/tr>\n<tr style=\"border-width: 0px;border-style: initial;border-color: initial;background-color: rgb(248, 248, 248);\">\n<td style=\"font-size: 16px;border-width: 0px;border-style: initial;border-color: initial;min-width: 85px;\">int64<\/td>\n<td style=\"font-size: 16px;border-width: 0px;border-style: initial;border-color: initial;min-width: 85px;\">8\u5b57\u8282<\/td>\n<td style=\"font-size: 16px;border-width: 0px;border-style: initial;border-color: initial;min-width: 85px;\">-2^63~2^63-1<\/td>\n<\/tr>\n<tr style=\"background-color: white;border-width: 0px;border-style: initial;border-color: initial;\">\n<td style=\"font-size: 16px;border-width: 0px;border-style: initial;border-color: initial;min-width: 85px;\">uint8<\/td>\n<td style=\"font-size: 16px;border-width: 0px;border-style: initial;border-color: initial;min-width: 85px;\">1\u5b57\u8282<\/td>\n<td style=\"font-size: 16px;border-width: 0px;border-style: initial;border-color: initial;min-width: 85px;\">0~2^8-1<\/td>\n<\/tr>\n<tr style=\"border-width: 0px;border-style: initial;border-color: initial;background-color: rgb(248, 248, 248);\">\n<td style=\"font-size: 16px;border-width: 0px;border-style: initial;border-color: initial;min-width: 85px;\">uint16<\/td>\n<td style=\"font-size: 16px;border-width: 0px;border-style: initial;border-color: initial;min-width: 85px;\">2\u5b57\u8282<\/td>\n<td style=\"font-size: 16px;border-width: 0px;border-style: initial;border-color: initial;min-width: 85px;\">0~2^16-1<\/td>\n<\/tr>\n<tr style=\"background-color: white;border-width: 0px;border-style: initial;border-color: initial;\">\n<td style=\"font-size: 16px;border-width: 0px;border-style: initial;border-color: initial;min-width: 85px;\">uint32<\/td>\n<td style=\"font-size: 16px;border-width: 0px;border-style: initial;border-color: initial;min-width: 85px;\">4\u5b57\u8282<\/td>\n<td style=\"font-size: 16px;border-width: 0px;border-style: initial;border-color: initial;min-width: 85px;\">0~2^32-1<\/td>\n<\/tr>\n<tr style=\"border-width: 0px;border-style: initial;border-color: initial;background-color: rgb(248, 248, 248);\">\n<td style=\"font-size: 16px;border-width: 0px;border-style: initial;border-color: initial;min-width: 85px;\">uint64<\/td>\n<td style=\"font-size: 16px;border-width: 0px;border-style: initial;border-color: initial;min-width: 85px;\">8\u5b57\u8282<\/td>\n<td style=\"font-size: 16px;border-width: 0px;border-style: initial;border-color: initial;min-width: 85px;\">0~2^64-1<\/td>\n<\/tr>\n<tr style=\"background-color: white;border-width: 0px;border-style: initial;border-color: initial;\">\n<td style=\"font-size: 16px;border-width: 0px;border-style: initial;border-color: initial;min-width: 85px;\">int<\/td>\n<td style=\"font-size: 16px;border-width: 0px;border-style: initial;border-color: initial;min-width: 85px;\">32\u4f4d\u7cfb\u7edf4\u5b57\u8282\uff0c64\u4f4d\u7cfb\u7edf8\u5b57\u8282<\/td>\n<td style=\"font-size: 16px;border-width: 0px;border-style: initial;border-color: initial;min-width: 85px;\">-2^31~2^31-1(32\u4f4d\u7cfb\u7edf)\u6216-2^63~2^63-1(64\u4f4d\u7cfb\u7edf)<\/td>\n<\/tr>\n<tr style=\"border-width: 0px;border-style: initial;border-color: initial;background-color: rgb(248, 248, 248);\">\n<td style=\"font-size: 16px;border-width: 0px;border-style: initial;border-color: initial;min-width: 85px;\">uint<\/td>\n<td style=\"font-size: 16px;border-width: 0px;border-style: initial;border-color: initial;min-width: 85px;\">32\u4f4d\u7cfb\u7edf4\u5b57\u8282\uff0c64\u4f4d\u7cfb\u7edf8\u5b57\u8282<\/td>\n<td style=\"font-size: 16px;border-width: 0px;border-style: initial;border-color: initial;min-width: 85px;\">0~2^32-1(32\u4f4d\u7cfb\u7edf)\u62160~2^64-1(64\u4f4d\u7cfb\u7edf)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/section>\n<h2 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"color: rgba(0, 0, 0, 0.6);font-weight: bold;margin-top: 0.5em;margin-bottom: 0.5em;\"><span style=\"display: none;\"><\/span>\u6570\u503c\u578b-\u6d6e\u70b9\u7c7b\u578b<\/h2>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;text-align: justify;\">\u6d6e\u70b9\u6570\u5728\u673a\u5668\u4e2d\u5b58\u653e\u5f62\u5f0f\uff1a\u6d6e\u70b9\u6570=\u7b26\u53f7\u4f4d+\u6307\u6570\u4f4d+\u5c3e\u6570\u4f4d\uff0c\u5c3e\u6570\u90e8\u5206\u53ef\u80fd\u4e22\u5931\uff0c\u9020\u6210\u7cbe\u5ea6\u635f\u5931<\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;text-align: justify;\">Golang\u6d6e\u70b9\u7c7b\u578b\u6709\u56fa\u5b9a\u7684\u8303\u56f4\u548c\u5b57\u6bb5\u957f\u5ea6\uff0c\u4e0d\u53d7\u5177\u4f53OS\u7684\u5f71\u54cd<\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;text-align: justify;\">Golang\u7684\u6d6e\u70b9\u7c7b\u578b\u9ed8\u8ba4\u58f0\u660e\u4e3afloat64<\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;text-align: justify;\">\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u5e94\u4f7f\u7528float64\uff0c\u56e0\u4e3a\u5b83\u7cbe\u5ea6\u66f4\u9ad8<\/p>\n<section data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"overflow-x: auto;\">\n<table width=\"100\">\n<thead>\n<tr style=\"background-color: white;border-width: 0px;border-style: initial;border-color: initial;\">\n<th style=\"font-size: 16px;text-align: left;background-color: rgb(240, 240, 240);border-width: 0px;border-style: initial;border-color: initial;min-width: 85px;\">\u7c7b\u578b<\/th>\n<th style=\"font-size: 16px;text-align: left;background-color: rgb(240, 240, 240);border-width: 0px;border-style: initial;border-color: initial;min-width: 85px;\">\u5360\u7528\u50a8\u5b58\u7a7a\u95f4<\/th>\n<th style=\"font-size: 16px;text-align: left;background-color: rgb(240, 240, 240);border-width: 0px;border-style: initial;border-color: initial;min-width: 85px;\">\u8303\u56f4<\/th>\n<\/tr>\n<\/thead>\n<tbody style=\"border-width: 0px;border-style: initial;border-color: initial;\">\n<tr style=\"background-color: white;border-width: 0px;border-style: initial;border-color: initial;\">\n<td style=\"font-size: 16px;border-width: 0px;border-style: initial;border-color: initial;min-width: 85px;\">float32<\/td>\n<td style=\"font-size: 16px;border-width: 0px;border-style: initial;border-color: initial;min-width: 85px;\">4\u5b57\u8282<\/td>\n<td style=\"font-size: 16px;border-width: 0px;border-style: initial;border-color: initial;min-width: 85px;\">-3.403E38~3.403E38<\/td>\n<\/tr>\n<tr style=\"border-width: 0px;border-style: initial;border-color: initial;background-color: rgb(248, 248, 248);\">\n<td style=\"font-size: 16px;border-width: 0px;border-style: initial;border-color: initial;min-width: 85px;\">float64<\/td>\n<td style=\"font-size: 16px;border-width: 0px;border-style: initial;border-color: initial;min-width: 85px;\">8\u5b57\u8282<\/td>\n<td style=\"font-size: 16px;border-width: 0px;border-style: initial;border-color: initial;min-width: 85px;\">-1.798E308~1.798E308<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/section>\n<h2 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"color: rgba(0, 0, 0, 0.6);font-weight: bold;margin-top: 0.5em;margin-bottom: 0.5em;\"><span style=\"display: none;\"><\/span>\u5b57\u7b26\u578b<\/h2>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;text-align: justify;\">Golang\u6ca1\u6709\u4e13\u95e8\u7684\u5b57\u7b26\u7c7b\u578b\uff0c\u5982\u679c\u8981\u5b58\u50a8\u5355\u4e2a\u5b57\u7b26\uff0c\u4e00\u822c\u4f7f\u7528byte\u6216\u8005rune\u6765\u4fdd\u5b58<\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;text-align: justify;\">\u5b57\u7b26\u5e38\u91cf\u662f\u7528\u5355\u5f15\u53f7\u62ec\u8d77\u6765\u7684\u5355\u4e2a\u5b57\u7b26<\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;text-align: justify;\">Golang\u4e2d\u5141\u8bb8\u4f7f\u7528\u8f6c\u4e49\u5b57\u7b26''\u6765\u5c06\u5176\u540e\u7684\u5b57\u7b26\u8f6c\u53d8\u4e3a\u7279\u6b8a\u5b57\u7b26\u578b\u5e38\u91cf<\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;text-align: justify;\">Golang\u8bed\u8a00\u7684\u5b57\u7b26\u4f7f\u7528UTF-8\u7f16\u7801<\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;text-align: justify;\">Golang\u4e2d\u5b57\u7b26\u7684\u672c\u8d28\u662f\u4e00\u4e2a\u6574\u6570\uff0c\u76f4\u63a5\u8f93\u51fa\u65f6\uff0c\u662f\u8be5\u5b57\u7b26\u5bf9\u5e94\u7684UTF-8\u7f16\u7801\u7684\u7801\u503c<\/p>\n<h3 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"color: rgb(90, 120, 131);font-size: 14px;font-weight: bold;margin-top: 0.5em;margin-bottom: 0.5em;\">? <span style=\"display: none;\"><\/span>byte<span style=\"display: none;\"><\/span><\/h3>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;text-align: justify;\">\u4e0euint8\u7b49\u4ef7\uff0c\u8303\u56f4\u4e3a0-255\uff0c\u5f53\u8981\u50a8\u5b58\u5b57\u7b26\u65f6\uff0c\u9009\u7528byte\uff0c\u5982\uff1a<\/p>\n<pre data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;\"><code style=\"overflow-x: auto;color: #abb2bf;background: #282c34;display: -webkit-box;font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;font-size: 12px;-webkit-overflow-scrolling: touch;border-radius: 6px;padding: 1em;\"><span style=\"color: #c678dd;line-height: 26px;\">var<\/span>&nbsp;a&nbsp;<span style=\"color: #c678dd;line-height: 26px;\">byte<\/span>&nbsp;=&nbsp;<span style=\"color: #98c379;line-height: 26px;\">'a'<\/span><br  \/><\/code><\/pre>\n<h3 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"color: rgb(90, 120, 131);font-size: 14px;font-weight: bold;margin-top: 0.5em;margin-bottom: 0.5em;\">? <span style=\"display: none;\"><\/span>rune<span style=\"display: none;\"><\/span><\/h3>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;text-align: justify;\">\u4e0eint32\u7b49\u4ef7\uff0c\u8303\u56f4\u4e3a-2^31~2^31-1\uff0c\u8868\u793a\u4e00\u4e2aUnicode\u7801\uff0c\u5982\uff1a<\/p>\n<pre data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;\"><code style=\"overflow-x: auto;color: #abb2bf;background: #282c34;display: -webkit-box;font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;font-size: 12px;-webkit-overflow-scrolling: touch;border-radius: 6px;padding: 1em;\"><span style=\"color: #c678dd;line-height: 26px;\">var<\/span>&nbsp;a&nbsp;<span style=\"color: #c678dd;line-height: 26px;\">rune<\/span>&nbsp;=&nbsp;<span style=\"color: #98c379;line-height: 26px;\">'\u4e2d'<\/span><br  \/><\/code><\/pre>\n<h2 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"color: rgba(0, 0, 0, 0.6);font-weight: bold;margin-top: 0.5em;margin-bottom: 0.5em;\"><span style=\"display: none;\"><\/span>\u5e03\u5c14\u578b<\/h2>\n<h3 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"color: rgb(90, 120, 131);font-size: 14px;font-weight: bold;margin-top: 0.5em;margin-bottom: 0.5em;\">? <span style=\"display: none;\"><\/span>bool<span style=\"display: none;\"><\/span><\/h3>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;text-align: justify;\">bool\u7c7b\u578b\u6570\u636e\u53ea\u5141\u8bb8\u53d6\u503ctrue\u548cfalse\uff0c\u4e0d\u53ef\u4ee50\u6216\u8005\u5176\u4ed6\u503c\u6765\u66ff\u4ee3true\u548cfalse<\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;text-align: justify;\">bool\u7c7b\u578b\u53601\u4e2a\u5b57\u8282\u7a7a\u95f4\u5927\u5c0f<\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;text-align: justify;\">bool\u7c7b\u578b\u9002\u7528\u4e8e\u903b\u8f91\u8fd0\u7b97\uff0c\u4e00\u822c\u7528\u4e8e\u7a0b\u5e8f\u6d41\u7a0b\u63a7\u5236<\/p>\n<h2 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"color: rgba(0, 0, 0, 0.6);font-weight: bold;margin-top: 0.5em;margin-bottom: 0.5em;\"><span style=\"display: none;\"><\/span>\u5b57\u7b26\u4e32<\/h2>\n<h3 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"color: rgb(90, 120, 131);font-size: 14px;font-weight: bold;margin-top: 0.5em;margin-bottom: 0.5em;\">? <span style=\"display: none;\"><\/span>string<span style=\"display: none;\"><\/span><\/h3>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;text-align: justify;\">\u5b57\u7b26\u4e32\u662f\u4e00\u4e32\u56fa\u5b9a\u957f\u5ea6\u7684\u5b57\u7b26\u8fde\u63a5\u8d77\u6765\u7684\u5b57\u7b26\u5e8f\u5217\uff0cGolang\u4e2d\u7684\u5b57\u7b26\u4e32\u7684\u5b57\u8282\u4f7f\u7528UTF-8\u7f16\u7801\u6807\u8bc6Unicode\u6587\u672c\uff0c\u4e0d\u4f1a\u51fa\u73b0\u4e2d\u6587\u4e71\u7801\u7b49\u95ee\u9898<\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;text-align: justify;\">\u5b57\u7b26\u4e32\u4e00\u65e6\u8d4b\u503c\u4e86\uff0c\u5b57\u7b26\u4e32\u5c31\u4e0d\u80fd\u4fee\u6539\u4e86\uff0c\u5728Go\u4e2d\u5b57\u7b26\u4e32\u662f\u4e0d\u53ef\u53d8\u7684<\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"font-size: 16px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;text-align: justify;\">\u5b57\u7b26\u4e32\u7684\u4e24\u79cd\u8868\u793a\u5f62\u5f0f\uff1a<\/p>\n<ol data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px;\" class=\"list-paddingleft-1\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\u53cc\u5f15\u53f7\uff1a\u8bc6\u522b\u8f6c\u4e49\u5b57\u7b26<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\u53cd\u5f15\u53f7\uff1a\u4ee5\u5b57\u7b26\u4e32\u7684\u539f\u751f\u5f62\u5f0f\u8f93\u51fa\uff0c\u5305\u62ec\u6362\u884c\u548c\u7279\u6b8a\u5b57\u7b26<\/section>\n<\/li>\n<\/ol>\n<h1 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"color: rgb(110, 150, 124);text-align: center;font-weight: bold;margin: 0.5em;\"><span style=\"padding-right: 1em;\">\/ <\/span><span style=\"display: none;\"><\/span>\u57fa\u672c\u6570\u636e\u7c7b\u578b\u9ed8\u8ba4\u503c<span style=\"padding-left: 1em;\">\/<\/span><\/h1>\n<section data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"overflow-x: auto;\">\n<table width=\"100\">\n<thead>\n<tr style=\"background-color: white;border-width: 0px;border-style: initial;border-color: initial;\">\n<th style=\"font-size: 16px;text-align: left;background-color: rgb(240, 240, 240);border-width: 0px;border-style: initial;border-color: initial;min-width: 85px;\">\u6570\u636e\u7c7b\u578b<\/th>\n<th style=\"font-size: 16px;text-align: left;background-color: rgb(240, 240, 240);border-width: 0px;border-style: initial;border-color: initial;min-width: 85px;\">\u9ed8\u8ba4\u503c<\/th>\n<\/tr>\n<\/thead>\n<tbody style=\"border-width: 0px;border-style: initial;border-color: initial;\">\n<tr style=\"background-color: white;border-width: 0px;border-style: initial;border-color: initial;\">\n<td style=\"font-size: 16px;border-width: 0px;border-style: initial;border-color: initial;min-width: 85px;\">\u6574\u578b<\/td>\n<td style=\"font-size: 16px;border-width: 0px;border-style: initial;border-color: initial;min-width: 85px;\">0<\/td>\n<\/tr>\n<tr style=\"border-width: 0px;border-style: initial;border-color: initial;background-color: rgb(248, 248, 248);\">\n<td style=\"font-size: 16px;border-width: 0px;border-style: initial;border-color: initial;min-width: 85px;\">\u6d6e\u70b9\u578b<\/td>\n<td style=\"font-size: 16px;border-width: 0px;border-style: initial;border-color: initial;min-width: 85px;\">0<\/td>\n<\/tr>\n<tr style=\"background-color: white;border-width: 0px;border-style: initial;border-color: initial;\">\n<td style=\"font-size: 16px;border-width: 0px;border-style: initial;border-color: initial;min-width: 85px;\">\u5b57\u7b26\u4e32<\/td>\n<td style=\"font-size: 16px;border-width: 0px;border-style: initial;border-color: initial;min-width: 85px;\">\"\"<\/td>\n<\/tr>\n<tr style=\"border-width: 0px;border-style: initial;border-color: initial;background-color: rgb(248, 248, 248);\">\n<td style=\"font-size: 16px;border-width: 0px;border-style: initial;border-color: initial;min-width: 85px;\">\u5e03\u5c14\u7c7b\u578b<\/td>\n<td style=\"font-size: 16px;border-width: 0px;border-style: initial;border-color: initial;min-width: 85px;\">false<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/section>\n<\/section>\n<p><br  \/><\/p>\n<p style=\"display: none;\"><mp-style-type data-value=\"3\"><\/mp-style-type><\/p>\n<blockquote>\n<p>\u672c\u7bc7\u6587\u7ae0\u6765\u6e90\u4e8e\u5fae\u4fe1\u516c\u4f17\u53f7:                 \u8349\u8393\u6a59\u6c41\u513f              <\/p>\n<\/blockquote>\n<\/div>\n","raw":"","protected":false},"excerpt":{"rendered":"<p>\/ \u5173\u4e8eGolang\u9762\u8bd5\u5b9d\u5178\/ \u6700\u8fd1\u51e0\u5e74\uff0cGo\u7684\u70ed\u5ea6\u6301\u7eed\u98d9\u5347\uff0c\u56fd\u5185\u5916\u5f88\u591a\u5927\u516c\u53f8\u90fd\u5728\u5927\u89c4\u6a21\u7684\u4f7f\u7528Go\u3002Google\u662fGo\u8bed\u8a00\u8bde\u751f\u7684\u5730 &#8230;<\/p>\n","protected":false},"author":1,"featured_media":1700,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"emotion":"","emotion_color":"","title_style":"","license":"","footnotes":""},"categories":[23],"tags":[],"class_list":["post-1701","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-go"],"post_thumbnail_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528044606815-150x150.jpeg","content_first_image":null,"post_medium_image_300":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528044606815-300x128.jpeg","post_thumbnail_image_624":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528044606815.jpeg","post_frist_image":null,"post_medium_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528044606815-300x128.jpeg","post_large_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528044606815.jpeg","post_full_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230528044606815.jpeg","post_all_images":[],"videoAdId":"","listAd":"0","listAdId":"","listAdEvery":6,"total_comments":0,"category_name":"Go","post_date":"2023-06-27","like_count":"0","praiseWord":"\u9f13\u52b1","copyright_state":"","excitationAd":"0","rewardedVideoAdId":"","detailAdId":"","detailAd":"0","enterpriseMinapp":"0","audios":[],"postImageUrl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230519082947553.jpg","avatarurls":[],"related_posts":null,"pageviews":379,"next_post_id":1670,"next_post_title":"Golang\u9762\u8bd5\u5b9d\u5178\u2014\u2014Go\u8bed\u8a00\u5b9e\u73b023\u79cd\u8bbe\u8ba1\u6a21\u5f0f\u4e4b\u7ed3\u6784\u578b\u6a21\u5f0f(\u4e0b)","previous_post_id":null,"previous_post_title":null,"_links":{"self":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts\/1701","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/comments?post=1701"}],"version-history":[{"count":0,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts\/1701\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/media\/1700"}],"wp:attachment":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/media?parent=1701"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/categories?post=1701"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/tags?post=1701"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}