Skip to content

Instantly share code, notes, and snippets.

var
MNR_ARRAY_TOOLTIPS = document.querySelectorAll("[data-mnr-tooltip]"),
MNR_BODY = document.querySelector("body"),
hasClass = function(element, className) {
for (var i of element.classList)
if (element.classList[i] === className)
return true;
return false;
},
@VijayKapoor92
VijayKapoor92 / main.go
Last active August 29, 2019 01:28
Simple file to mount and deploy server with GO
package main
//Importa os pacotes necessarios
import (
"log"
"net/http"
"time"
)
//Faca a funcao main que sera sua funcao principal
@VijayKapoor92
VijayKapoor92 / simple_api.go
Last active September 29, 2019 16:12
Programa em go para tratar as Responses das Request
package main
import (
"encoding/json"
"github.com/gorilla/mux"
"io/ioutil"
"log"
"net/http"
"strconv"
"time"