Skip to content

为什么http的操作ioutil.ReadAll,后面都没有resp.Close,是不需要吗? #4

Description

@haima95

为什么http的操作ioutil.ReadAll,后面都没有resp.Close,是不需要吗?
在一些go的书籍上都有强调ioutil.ReadAll读取后,记得调用defer close

很感谢

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions