forked from GithubBackups/healthchecks
feature: golang code snippet added
This commit is contained in:
parent
b0db5181d8
commit
3d9261c7c4
4
templates/front/snippets/go.html
Normal file
4
templates/front/snippets/go.html
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
<div class="highlight"><pre><span></span><span class="nb">import</span> <span class="s1">"net/http"</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>
|
9
templates/front/snippets/go.txt
Normal file
9
templates/front/snippets/go.txt
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
import "fmt"
|
||||||
|
import "net/http"
|
||||||
|
|
||||||
|
func main() {
|
||||||
|
_, err := http.Get("PING_URL")
|
||||||
|
if err != nil {
|
||||||
|
fmt.Printf("%s", err)
|
||||||
|
}
|
||||||
|
}
|
@ -62,6 +62,9 @@
|
|||||||
<li class="hidden-xs">
|
<li class="hidden-xs">
|
||||||
<a href="#node" data-toggle="tab">Node.js</a>
|
<a href="#node" data-toggle="tab">Node.js</a>
|
||||||
</li>
|
</li>
|
||||||
|
<li class="hidden-xs">
|
||||||
|
<a href="#go" data-toggle="tab">Go</a>
|
||||||
|
</li>
|
||||||
<li class="hidden-xs">
|
<li class="hidden-xs">
|
||||||
<a href="#php" data-toggle="tab">PHP</a>
|
<a href="#php" data-toggle="tab">PHP</a>
|
||||||
</li>
|
</li>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user