Get package from here
// import "golorize"
fmt.Println( golorize.Red("[FAIL] Some Errors Occurred") )
Len(pack Pack) (ln int, err error) | |
// presence check | |
HasHash(pack Pack, hash cipher.SHA256) (ok bool, err error) | |
// short hand for HasHash + pack.Get(hash) + encoder.DeserializeRaw | |
ValueByHash(pack Pack, hash cipher.SHA256, obj interface{}) (err error) | |
// the IndexByHash is useful only if the Refs contains only unique | |
// elements |
// in this example the Event is an event, that requires updates in our Root | |
func startHandlingSomePack(events <-chan Event, pack *skyobject.Pack, | |
n *node.Node, wg *sync.WaitGroup) { | |
go handleSomePack(n, pack, events, n.Quiting(), wg) | |
} | |
func handleSomePack(n *node.Node, pack *cxo.Pack, events <-chan Event, | |
quit <-chan struct{}, wg *sync.WaitGroup) { |
package main | |
import ( | |
"flag" | |
"fmt" | |
"log" | |
"strings" | |
"time" | |
"github.com/peterh/liner" |
/* | |
// Creates a router without any middleware by default | |
r := gin.New() | |
r.Use(gin.Recovery()) | |
r.Use(logger.Logger()) // use this logger without colors | |
*/ | |
package logger |
Get package from here
// import "golorize"
fmt.Println( golorize.Red("[FAIL] Some Errors Occurred") )
serialize :column, JSON
realy faster then standart YAML serialize
class Some < ActiveRecord:Base