Skip to content

Instantly share code, notes, and snippets.

View benzsuankularb's full-sized avatar

benzsuankularb benzsuankularb

View GitHub Profile
@benzsuankularb
benzsuankularb / timestamp.go
Last active December 25, 2016 13:19
Timestamp for marshal/unmarshal json from javascript timestamp
package timestamp
import (
"strconv"
"time"
)
// Declare as *Timestamp to get it worked else it will use default time string format.
type Timestamp struct {
time.Time