Sora233 / DDBOT

一个基于MiraiGO的QQ群推送框架, 内置支持b站直播/动态,斗鱼直播,YTB直播/预约直播,虎牙直播,ACFUN直播,微博动态, 也可以通过插件支持任何订阅源。
https://ddbot.sora233.me
GNU Affero General Public License v3.0
518 stars 69 forks source link

Bump github.com/guonaihong/gout from 0.2.12 to 0.3.1 #159

Closed dependabot[bot] closed 2 years ago

dependabot[bot] commented 2 years ago

Bumps github.com/guonaihong/gout from 0.2.12 to 0.3.1.

Release notes

Sourced from github.com/guonaihong/gout's releases.

v0.3.1版本

来源,#338

  1. 全局SetDebug
package main

import ( "fmt"

"github.com/guonaihong/gout"

)

func main() { gout.SetDebug(true) err := gout.GET(":8080/colorjson").Do() if err != nil { fmt.Printf("err is:%v\n") } }

  1. 请求保存到文件里面
import (
    "github.com/guonaihong/gout"
    "github.com/guonaihong/gout/debug"
)
func main() {
err := gout.POST(":8080/colorjson").
    Debug(debug.ToFile("./req.txt", false)).
    SetJSON(gout.H{"str": "foo",
        "num":   100,
        "bool":  false,
        "null":  nil,
        "array": gout.A{"foo", "bar", "baz"},
        "obj":   gout.H{"a": 1, "b": 2},
    }).Do()

if err != nil {
    fmt.Printf("err = %v\n", err)
}

}

  1. 请求保存到io.Writer里面, bytes.Buffer, 文件都可存放
package main

import ( "bytes" </tr></table>

... (truncated)

Commits


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
coveralls commented 2 years ago

Coverage Status

Coverage increased (+0.5%) to 44.398% when pulling 8c67a9ebab1d5a615e5e90f404aa0b691787f9be on dependabot/go_modules/github.com/guonaihong/gout-0.3.1 into ac6e05e55667b77746b76c11b6d2e24d1f1cde58 on master.