代码之家  ›  专栏  ›  技术社区  ›  John Balvin Arias

云存储:使用golang本地时无法上载任何内容

  •  0
  • John Balvin Arias  · 技术社区  · 7 年前
    客户端,错误:=storage.newclient(ctx) w.contentType=“文本/普通”

    当我运行这个程序时,在控制台中我可以看到从我的bucket中打印的属性,这对我来说意味着配置没有任何问题。 ,但问题是当我在 console.cloud.google.com上看到时,我的bucket上没有看到任何文件 /> Even on API Dashboard does not seep like any API has been called(that peak before the red line is other API I was using) ,even though no error is sh在我的控制台上显示出了问题

    console 但问题是当我看到 console.cloud.google.com my bucket api dashboard

    1 回复  |  直到 7 年前
        1
  •  1
  •   John Balvin Arias    7 年前

    我只是忘记了关闭客户, this page

    if err := w.Close(); err != nil {
                log.Fatal(err)
                return
            }