diff --git a/templates/front/snippets/go.html b/templates/front/snippets/go.html new file mode 100644 index 00000000..3f72e0d2 --- /dev/null +++ b/templates/front/snippets/go.html @@ -0,0 +1,4 @@ +
import "net/http"
+import "fmt"
+func main() { _, err := http.Get("PING_URL") }
+
diff --git a/templates/front/snippets/go.txt b/templates/front/snippets/go.txt new file mode 100644 index 00000000..8f1cbb19 --- /dev/null +++ b/templates/front/snippets/go.txt @@ -0,0 +1,9 @@ +import "fmt" +import "net/http" + +func main() { + _, err := http.Get("PING_URL") + if err != nil { + fmt.Printf("%s", err) + } +} diff --git a/templates/front/welcome.html b/templates/front/welcome.html index 5cbe9df7..1ec27d4c 100644 --- a/templates/front/welcome.html +++ b/templates/front/welcome.html @@ -62,6 +62,9 @@ +