Skip to content

Instantly share code, notes, and snippets.

@supanadit
supanadit / GinSocketIO.go
Created January 4, 2020 23:10
Gin Gonic + Socket IO
package main
import (
"fmt"
"github.com/gin-gonic/gin"
engineio "github.com/googollee/go-engine.io"
"github.com/googollee/go-engine.io/transport"
engineiopooling "github.com/googollee/go-engine.io/transport/polling"
socketio "github.com/googollee/go-socket.io"
"log"
@hotdang-ca
hotdang-ca / distance.go
Last active April 3, 2025 20:24
Golang code to calculate distance between two lat/lng decimal coordinates.
package main
import (
"math"
"fmt"
)
//:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
//::: :::
//::: This routine calculates the distance between two points (given the :::