Merge branch 'master' of ssh://gitea.digitalcircle.com.br:2222/open/replaycli-go
commit
18173ed486
|
@ -13,12 +13,13 @@ func NewCli() *Cli {
|
||||||
return ret
|
return ret
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *Cli) Test() (ret string, err error) {
|
func (c *Cli) Test() (ret []byte, err error) {
|
||||||
err = c.HttpCli().JsonPost("/ipc/ahk/test", nil, &ret)
|
ret, err = c.HttpCli().RawPost("/ipc/ahk/test", nil)
|
||||||
return ret, err
|
return ret, err
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *Cli) Do(data string) (ret string, err error) {
|
func (c *Cli) Do(data string) (ret []byte, err error) {
|
||||||
err = c.HttpCli().JsonPost("/ipc/ahk/do", data, &ret)
|
i := []byte(data)
|
||||||
|
ret, err = c.HttpCli().RawPost("/ipc/ahk/do", i)
|
||||||
return ret, err
|
return ret, err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue