{"id":99883,"date":"2020-04-24T09:06:10","date_gmt":"2020-04-24T01:06:10","guid":{"rendered":"http:\/\/4563.org\/?p=99883"},"modified":"2020-04-24T09:06:10","modified_gmt":"2020-04-24T01:06:10","slug":"golang-for-range-%e7%9a%84%e9%97%ae%e9%a2%98","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=99883","title":{"rendered":"Golang for range \u7684\u95ee\u9898"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  Golang for range \u7684\u95ee\u9898               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : hcyg <\/span>  <span><i><\/i> 51<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u5728 Golang for range \u7684\u65f6\u5019 \u4e3a\u5565\u76f4\u63a5<\/p>\n<pre><code>s :=[]int{1,2,3,4} data :=make(map[int]*int) for k,v := range s {     fmt.Printf(v)      fmt.Printf(&amp;v) } <\/code><\/pre>\n<p>\u8f93\u51fa v \u662f 1234 \u4f46\u662f &amp;v \u7684\u65f6\u5019\u662f\u540c\u4e00\u4e2a\u5730\u5740\u3002\u3002\u8fd9\u662f\u4e3a\u5565\u3002\u3002\u4e0d\u662f\u5f88\u660e\u767d<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>2<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"762846\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : linvon <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5e94\u8be5\u662f v \u662f\u4e34\u65f6\u53d8\u91cf\uff0c\u53ea\u8d4b\u503c\u5730\u5740\u4e0d\u4f1a\u53d8\u5316\u5427                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"762847\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : hcyg <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @linvon \u6574\u660e\u767d\u4e86 range \u7684\u65f6\u5019\u521b\u5efa\u4e86 v \u53d8\u91cf \u8fd9\u4e2a v \u53d8\u91cf\u5730\u5740\u5df2\u7ecf\u5b9a\u4e86\u3002\u3002 \u6bcf\u6b21\u5faa\u73af\u90fd\u53ea\u662f\u8d4b\u503c\u5185\u5bb9\u7ed9 v \u521a\u521a\u6574\u660e\u767d                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>Golang for range &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/99883"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=99883"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/99883\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=99883"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=99883"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=99883"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}