Skip to content

Instantly share code, notes, and snippets.

View anisbhsl's full-sized avatar
👨‍💻

Anish Bhusal anisbhsl

👨‍💻
View GitHub Profile
@anisbhsl
anisbhsl / sql.peg
Created January 20, 2020 06:50
PEG parser for SQL queries (Select and Insert) in Go
/*Initializer code block */
{
package main
import (
"strconv"
"strings"
)
type SelectQuery struct{
SelectFields []string
package main
import (
"encoding/json"
"fmt"
"github.com/gorilla/mux"
"golang.org/x/oauth2"
"io/ioutil"
"log"
@anisbhsl
anisbhsl / floatingBytesOrdering.go
Created November 4, 2019 05:24
Orders floating point numbers in byte order
package main
import(
"encoding/binary"
//"encoding/binary"
"fmt"
"math"
)
func main(){