{"id":282884,"date":"2016-12-22T15:40:04","date_gmt":"2016-12-22T12:40:04","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=282884"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=282884","title":{"rendered":"SetGoroutineName"},"content":{"rendered":"<p>\u0412 Go \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u043d\u043e \u0431\u043e\u043b\u044c\u0448\u0435 \u043c\u0438\u043b\u043b\u0438\u043e\u043d\u0430 goroutine, \u0438 \u044d\u0442\u043e\u0442 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 \u0432\u043e\u0441\u0442\u043e\u0440\u0433 \u0434\u043e \u0442\u043e\u0433\u043e \u043c\u043e\u043c\u0435\u043d\u0442\u0430, \u043f\u043e\u043a\u0430 \u043d\u0435 \u043f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043a\u0430\u043a\u0430\u044f-\u043b\u0438\u0431\u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0443\u0442\u0435\u0447\u043a\u0430 \u043f\u0430\u043c\u044f\u0442\u0438 \u0438\u043b\u0438 dead-lock. <\/p>\n<p>  <\/p>\n<p>\u041f\u0435\u0440\u0432\u043e\u0435, \u0447\u0442\u043e \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u044d\u0442\u043e \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f, \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043d\u0430 \u0442\u043e, \u0447\u0442\u043e \u0436\u0435 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442.<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/a83\/a38\/0ae\/a83a380ae0d7473badb24e4ac43d5578.png\" alt=\"image\"\/><\/p>\n<p>  <\/p>\n<p>\u044d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0442\u0430\u043a<\/p>\n<p><a name=\"habracut\"><\/a>  <\/p>\n<pre><code class=\"go\">package main  import (     &quot;bytes&quot;     &quot;fmt&quot;     &quot;runtime\/pprof&quot; )  func main() {     profiler := pprof.Lookup(&quot;goroutine&quot;)     var buf bytes.Buffer     profiler.WriteTo(&amp;buf, 1)     fmt.Println(buf.String()) }<\/code><\/pre>\n<p>  <\/p>\n<pre><code>goroutine profile: total 1 1 @ 0xb1620 0xb1340 0xac9c0 0x200c0 0x59f80 0x98d61 #   0xb161f runtime\/pprof.writeRuntimeProfile+0xdf  \/usr\/local\/go\/src\/runtime\/pprof\/pprof.go:614 #   0xb133f runtime\/pprof.writeGoroutine+0x9f   \/usr\/local\/go\/src\/runtime\/pprof\/pprof.go:576 #   0xac9bf runtime\/pprof.(*Profile).WriteTo+0xff   \/usr\/local\/go\/src\/runtime\/pprof\/pprof.go:298 #   0x200bf main.main+0xbf              \/tmp\/sandbox627252447\/main.go:12 #   0x59f7f runtime.main+0x39f          \/usr\/local\/go\/src\/runtime\/proc.go:183<\/code><\/pre>\n<p>  <\/p>\n<p><a href=\"https:\/\/play.golang.org\/p\/ysl_avotLS\">https:\/\/play.golang.org\/p\/ysl_avotLS<\/a><br \/>  \u0438\u043b\u0438 \u0442\u0430\u043a<\/p>\n<p>  <\/p>\n<pre><code class=\"go\">package main  import (     &quot;fmt&quot;     &quot;runtime&quot; )  func main() {     b1 := make([]byte, 1&lt;&lt;20)     runtime.Stack(b1, true)     s1 := string(b1)     fmt.Println(s1) }<\/code><\/pre>\n<p>  <\/p>\n<pre><code>goroutine 1 [running]: main.main()     \/tmp\/sandbox952340390\/main.go:10 +0x80<\/code><\/pre>\n<p>  <\/p>\n<p><a href=\"https:\/\/play.golang.org\/p\/FCbzn2_DlQ\">https:\/\/play.golang.org\/p\/FCbzn2_DlQ<\/a><\/p>\n<p>  <\/p>\n<p>\u041c\u044b \u0432\u0438\u0434\u0438\u043c, \u0447\u0442\u043e \u0432 \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u0445 \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u043d\u0430 \u043e\u0434\u043d\u0430 \u0433\u043e\u0443\u0440\u0443\u0442\u0438\u043d\u0430 \u0438 \u0435\u0435 \u0441\u0442\u0435\u043a \u0442\u0440\u0435\u0439\u0441, \u043d\u043e \u0435\u0441\u043b\u0438 \u0443 \u043d\u0430\u0441 20-30 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0445 goroutine, \u0442\u043e \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u0435\u0442 \u0432\u043e\u043f\u0440\u043e\u0441 \u043a\u043e\u0433\u043e \u043e\u043d\u0438 \u043e\u0431\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u044e\u0442? \u0415\u0441\u043b\u0438 \u044d\u0442\u043e \u0441\u0430\u0439\u0442, \u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0443\u0448\u0435\u043b, \u0430 goroutine \u043d\u0435 \u043f\u0440\u0435\u043a\u0440\u0430\u0442\u0438\u043b\u0430 \u0441\u0432\u043e\u0451 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u043d\u0438\u0435, \u0438 \u043a\u0430\u043a \u0441\u043b\u0435\u0434\u0441\u0442\u0432\u0438\u0435 \u043d\u0435 \u043e\u0441\u0432\u043e\u0431\u043e\u0436\u0434\u0430\u0435\u0442 \u043f\u0430\u043c\u044f\u0442\u044c?<\/p>\n<p>  <\/p>\n<p>\u041f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0436\u0435\u043b\u0430\u043d\u0438\u0435 \u0434\u0430\u0432\u0430\u0442\u044c \u0433\u043e\u0443\u0440\u0443\u0442\u0438\u043d\u0430\u043c \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u0438 \u0432 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0432\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u0432\u044f\u043a\u0443\u044e \u043f\u043e\u043b\u0435\u0437\u043d\u0443\u044e \u0438\u043d\u0444\u0443, \u043a\u0430\u043a \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 Id \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f, \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043e\u043d\u0430 \u043e\u0431\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u043d\u0438\u0435\u0442. \u041d\u043e \u0432 Go \u043d\u0435\u043f\u0440\u043e\u0441\u0442\u043e \u0442\u0430\u043a \u043d\u0435\u0442 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 <code>SetGoroutineName<\/code> \u0438\u043b\u0438 <code>GetGoroutineId<\/code>. \u0422\u0430\u043a\u0438\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u2014 \u0437\u043b\u043e \u043f\u043e \u043c\u043d\u0435\u043d\u0438\u044e \u0441\u043e\u0437\u0434\u0430\u0442\u0435\u043b\u0435\u0439 \u044f\u0437\u044b\u043a\u0430 Go. \u0422\u0440\u0443\u0434\u043d\u043e \u043d\u0435 \u0441\u043e\u0433\u043b\u0430\u0441\u0438\u0442\u044c\u0441\u044f \u0441 \u0442\u0430\u043a\u0438\u043c\u0438 \u043b\u044e\u0434\u043c\u0438 \u043a\u0430\u043a Rob \u0438 Ken. \u041d\u043e \u0437\u043b\u043e \u044d\u0442\u043e \u043d\u0435 \u043f\u043e\u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u0432\u043e\u043e\u0431\u0449\u0435 \u044d\u0442\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0437\u043b\u043e, \u0430 \u043f\u043e\u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u044d\u0442\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u044b \u043d\u0430\u0447\u043d\u0443\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e. \u041d\u0435 \u0434\u043b\u044f \u043e\u0442\u043b\u0430\u0434\u043a\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u0432 \u043c\u043e\u043c\u0435\u043d\u0442 \u0443\u0442\u0435\u0447\u043a\u0438 \u043f\u0430\u043c\u044f\u0442\u0438, \u0430 \u043f\u0440\u043e\u0441\u0442\u043e \u043a\u0430\u043a goroutine local storage. \u0422\u043e \u0435\u0441\u0442\u044c, \u0432 \u043b\u043e\u0433\u0438\u043a\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u043f\u043b\u043e\u0445\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0442\u0430\u043a\u0438\u0435 \u0448\u0442\u0443\u043a\u0438, \u043d\u043e \u0435\u0441\u043b\u0438 \u043d\u0430\u043a\u043e\u0441\u044f\u0447\u0438\u043b\u0438, \u0442\u043e \u0432\u0441\u0435 \u0436\u0435 \u043e\u0448\u0438\u0431\u043a\u0443 \u043d\u0430\u0434\u043e \u043a\u0430\u043a-\u0442\u043e \u043d\u0430\u0439\u0442\u0438.<\/p>\n<p>  <\/p>\n<h1 id=\"pyradebug\">PyraDebug<\/h1>\n<p>  <\/p>\n<p>\u0417\u043d\u0430\u0447\u0438\u0442 \u043d\u0443\u0436\u043d\u043e \u0434\u0430\u0432\u0430\u0442\u044c \u0438\u043c\u0435\u043d\u0430 \u0433\u043e\u0440\u0443\u0442\u0438\u043d\u0430\u043c, \u043d\u043e \u0447\u0442\u043e-\u0431\u044b \u043b\u043e\u0433\u0438\u043a\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043e\u0442 \u044d\u0442\u043e\u0433\u043e \u043d\u0435 \u0437\u0430\u0432\u0438\u0441\u0435\u043b\u0430. \u0422\u0430\u043a \u0438 \u0440\u043e\u0434\u0438\u043b\u0430\u0441\u044c <code>pyradebug<\/code><\/p>\n<p>  <\/p>\n<pre><code>go get -u github.com\/CossackPyra\/pyradebug<\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"go\">package main  import (     &quot;fmt&quot;     &quot;log&quot;     &quot;net\/http&quot;     &quot;time&quot;      &quot;github.com\/CossackPyra\/pyradebug&quot; )  var pyraDebug *pyradebug.PyraDebug  func main() {     pyraDebug = pyradebug.InitPyraDebug()     pyraDebug.Enable = true      for i := 0; i &lt; 10; i++ {         go func(i int) {             pyraDebug.SetGoroutineName(fmt.Sprintf(&quot;sleep func %d&quot;, i))             for {                 time.Sleep(time.Second)             }         }(i)     }      http.HandleFunc(&quot;\/goroutine&quot;, handle_goroutine)     log.Fatal(http.ListenAndServe(&quot;:8765&quot;, nil))  }  func handle_goroutine(w http.ResponseWriter, r *http.Request) {     agi := pyraDebug.ListGoroutines(1&lt;&lt;20, true)     w.Header().Set(&quot;Content-Type&quot;, &quot;text\/plain&quot;)     for i, gi := range agi {         fmt.Fprintf(w, &quot;%d\\t%s\\t%s\\t%s\\n&quot;, i, gi.Id, gi.Name, gi.Status)     } } <\/code><\/pre>\n<p>  <\/p>\n<pre><code># http:\/\/127.0.0.1:8765\/goroutine  0   goroutine 31        running 1   goroutine 1     IO wait 2   goroutine 17        syscall, locked to thread 3   goroutine 20    sleep func 0    sleep 4   goroutine 21    sleep func 1    sleep 5   goroutine 22    sleep func 2    sleep 6   goroutine 23    sleep func 3    sleep 7   goroutine 24    sleep func 4    sleep 8   goroutine 25    sleep func 5    sleep 9   goroutine 26    sleep func 6    sleep 10  goroutine 27    sleep func 7    sleep 11  goroutine 28    sleep func 8    sleep 12  goroutine 29    sleep func 9    sleep<\/code><\/pre>\n<p>  <\/p>\n<p>\u0412\u0430\u0436\u043d\u043e\u0439 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u044c\u044e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f <code>pyraDebug.Enable = true<\/code>, \u0442\u043e \u0435\u0441\u0442\u044c \u043f\u043e\u0441\u043b\u0435 \u043e\u0442\u043b\u0430\u0434\u043a\u0438 \u0432\u044b \u043f\u0440\u043e\u0441\u0442\u043e \u0435\u0435 \u043e\u0442\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0435 \u0438 \u043e\u043d\u0430 \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u0435\u0442 \u0447\u0442\u043e-\u043b\u0438\u0431\u043e \u0434\u0435\u043b\u0430\u0442\u044c \u0438 \u0437\u043d\u0430\u0447\u0438\u0442 \u043f\u043e\u043b\u0430\u0433\u0430\u0442\u044c\u0441\u044f \u043d\u0430 <code>SetGoroutineName<\/code> \u0432 \u043b\u043e\u0433\u0438\u043a\u0435 \u043d\u0435\u043b\u044c\u0437\u044f. <\/p>\n<p>  <\/p>\n<p>\u0418\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u044f \u0445\u043e\u0442\u0435\u043b \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0435\u0449\u0435 \u0438\u043c\u044f \u0433\u043e\u0443\u0440\u0443\u0442\u0438\u043d\u044b, \u0447\u0442\u043e \u043f\u043e\u0440\u043e\u0434\u0438\u043b\u0430 \u0435\u0451, \u043d\u043e \u043d\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435 \u043c\u043d\u0435 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u0438\u043c\u044f, \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434 127 \u0441\u0442\u0440\u043e\u043a\u0438. \u0415\u0433\u043e \u043b\u0435\u0433\u043a\u043e \u0444\u043e\u0440\u043a\u043d\u0443\u0442\u044c, \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f \u0438 \u0434\u043e\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c.<\/p>\n<p>  <\/p>\n<p>\u0411\u0438\u0431\u043b\u0438\u0442\u0435\u043a\u0430 \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u043e\u0433\u043e \u0444\u043e\u0440\u043c\u0430\u0442\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u044b\u0434\u0430\u0435\u0442 <code>runtime.Stack<\/code> \u0438 \u043c\u043e\u0436\u0435\u0442 \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0432 \u0431\u0443\u0434\u0443\u0449\u0435\u043c, \u0447\u0442\u043e \u0442\u0430\u043a-\u0436\u0435 \u0445\u043e\u0440\u043e\u0448\u043e, \u0447\u0442\u043e\u0431\u044b \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u043d\u0435 \u043f\u043e\u043b\u0430\u0433\u0430\u043b\u0438\u0441\u044c \u0431\u0435\u0437\u0434\u0443\u043c\u043d\u043e \u043d\u0430 \u044d\u0442\u043e \u0431\u0438\u0431\u043b\u0438\u0442\u0435\u043a\u0443 \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0438 \u0435\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u043e\u0442\u043b\u0430\u0434\u043a\u0438. <\/p>\n<p>  <\/p>\n<p>PS. \u0412\u0441\u0435\u0433\u0434\u0430 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u0443\u0437\u043d\u0430\u0442\u044c, \u0447\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u043b \u0432\u0435\u043b\u043e\u0441\u0435\u043f\u0435\u0434<\/p>\n<p>  <\/p>\n<p><a href=\"https:\/\/github.com\/CossackPyra\/pyradebug\">https:\/\/github.com\/CossackPyra\/pyradebug<\/a><\/p>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habrahabr.ru\/post\/318220\/\"> https:\/\/habrahabr.ru\/post\/318220\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0412 Go \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u043d\u043e \u0431\u043e\u043b\u044c\u0448\u0435 \u043c\u0438\u043b\u043b\u0438\u043e\u043d\u0430 goroutine, \u0438 \u044d\u0442\u043e\u0442 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 \u0432\u043e\u0441\u0442\u043e\u0440\u0433 \u0434\u043e \u0442\u043e\u0433\u043e \u043c\u043e\u043c\u0435\u043d\u0442\u0430, \u043f\u043e\u043a\u0430 \u043d\u0435 \u043f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043a\u0430\u043a\u0430\u044f-\u043b\u0438\u0431\u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0443\u0442\u0435\u0447\u043a\u0430 \u043f\u0430\u043c\u044f\u0442\u0438 \u0438\u043b\u0438 dead-lock. <\/p>\n<p>  <\/p>\n<p>\u041f\u0435\u0440\u0432\u043e\u0435, \u0447\u0442\u043e \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u044d\u0442\u043e \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f, \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043d\u0430 \u0442\u043e, \u0447\u0442\u043e \u0436\u0435 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442.<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/a83\/a38\/0ae\/a83a380ae0d7473badb24e4ac43d5578.png\" alt=\"image\"\/><\/p>\n<p>  <\/p>\n<p>\u044d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0442\u0430\u043a<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-282884","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/282884","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=282884"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/282884\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=282884"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=282884"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=282884"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}