An open API service indexing awesome lists of open source software.

https://github.com/andrewstuart/lightning

Speedy spark core library written in Go (aka Golang)
https://github.com/andrewstuart/lightning

Last synced: about 1 year ago
JSON representation

Speedy spark core library written in Go (aka Golang)

Awesome Lists containing this project

README

          

lightning
=========

Speedy spark core library written in Go (aka Golang)

```Go
c, err := lightning.Collection{"12345mykey12345"}
//Handle err

myCore := c["mycorename"]

variable, err := myCore.Var("variableName")
//Handle err

fnResult, err := myCore.Fn("functionname", "functionParam") //(Any type for param. will be run through ftm.Sprint())
//Handle err

myCore.On("eventName", func HandleEvent(s string) {
//Handle event
});

eventChan, err := myCore.Evt("eventName")
//Handle err

for {
select {
case val := <- eventChan:
//Do something
}
}

```