Skip to content

Instantly share code, notes, and snippets.

View ujjwal-kr's full-sized avatar
:shipit:
Explo[ r | it ]ing

Ujjwal Kumar ujjwal-kr

:shipit:
Explo[ r | it ]ing
View GitHub Profile
@ujjwal-kr
ujjwal-kr / byte_to_str.go
Created October 29, 2020 12:10
Convert []byte to string in Golang
func BytesToString(data []byte) string {
return string(data[:])
}
@ujjwal-kr
ujjwal-kr / app.go
Created October 20, 2020 16:42 — forked from henkman/app.go
webapp example with fiber + jwt-go +gorm + scrypt
package main
import (
"bytes"
"crypto/ecdsa"
"crypto/elliptic"
"crypto/rand"
"fmt"
"io"
"regexp"