Merge branch 'master' of ssh://gitea.digitalcircle.com.br:2222/open/replaycli-go

master
Leonardo Domingues 2021-12-16 11:08:16 -03:00
commit 18173ed486
1 changed files with 5 additions and 4 deletions

View File

@ -13,12 +13,13 @@ func NewCli() *Cli {
return ret
}
func (c *Cli) Test() (ret string, err error) {
err = c.HttpCli().JsonPost("/ipc/ahk/test", nil, &ret)
func (c *Cli) Test() (ret []byte, err error) {
ret, err = c.HttpCli().RawPost("/ipc/ahk/test", nil)
return ret, err
}
func (c *Cli) Do(data string) (ret string, err error) {
err = c.HttpCli().JsonPost("/ipc/ahk/do", data, &ret)
func (c *Cli) Do(data string) (ret []byte, err error) {
i := []byte(data)
ret, err = c.HttpCli().RawPost("/ipc/ahk/do", i)
return ret, err
}