Merge pull request #293 from omurbekjk/feature/golang-example-added-for-code-snippets

feature: golang code snippet added
This commit is contained in:
Pēteris Caune 2019-10-07 15:00:08 +03:00 committed by GitHub
commit ad731dfe0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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.Head("PING_URL") }</span>
</pre></div>

View File

@ -0,0 +1,9 @@
import "fmt"
import "net/http"
func main() {
_, err := http.Head("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>