Hi, this is my first published project (i hope). Go-js is mini package that aim to help JavaScript developer transition to Golang.
- Go get
go get github.com/bimonugraraga/go-js
- Import
import (
"github.com/bimonugraraga/go-js"
)
- Ternary
exm := gojs.Ternary(condition, result1, result2)
- IsFalsy
IsFalsy will return true as long as input is
exmIn := nil exmOut := gojs.IsFalsy(exmIn)
nil, "", error, and 0
You can email bimonugraraga@gmail.com for feedback or complaint. Thank you.