feature: golang code snippet added

This commit is contained in:
omurbekjk 2019-10-03 17:22:36 +06:00
parent b0db5181d8
commit 3d9261c7c4
3 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,4 @@
<div class="highlight"><pre><span></span><span class="nb">import</span> <span class="s1">&#34;net/http&#34;</span>
<span class="nb">import</span> <span class="s1">"fmt"</span>
<span class="nx">func main() { </span><span class="p">_, err := http.Get("PING_URL") }</span>
</pre></div>

View File

@ -0,0 +1,9 @@
import "fmt"
import "net/http"
func main() {
_, err := http.Get("PING_URL")
if err != nil {
fmt.Printf("%s", err)
}
}

View File

@ -62,6 +62,9 @@
<li class="hidden-xs">
<a href="#node" data-toggle="tab">Node.js</a>
</li>
<li class="hidden-xs">
<a href="#go" data-toggle="tab">Go</a>
</li>
<li class="hidden-xs">
<a href="#php" data-toggle="tab">PHP</a>
</li>