Watch process

What about string formatting or json encoding ?

Envoyé de mon iPhone

> Le 25 juil. 2014 à 09:53, Robin Monjo <notifications@github.com> a écrit :
> 
> In notify.go:
> 
> > +package psdock
> > +
> > +import (
> > +	"bytes"
> > +	"errors"
> > +	"net/http"
> > +	"strings"
> > +)
> > +
> > +//NotifyWebHook sends a http "PUT" request to hook. The message is of type json, and
> > +//is "{"ps":{"status":status}}
> > +func NotifyWebHook(hook string, status string) error {
> > +	if hook == "" {
> > +		return nil
> > +	}
> > +	requestMessage := strings.Join([]string{"{\"ps\":{\"status\":", status, "}}"}, "")
> use the "`" quote to avoid backslashing everything
> 
> —
> Reply to this email directly or view it on GitHub.