Skip to content
This repository was archived by the owner on Mar 23, 2023. It is now read-only.
This repository was archived by the owner on Mar 23, 2023. It is now read-only.

Can't access Go struct fields from Python #12

@ns-cweber

Description

@ns-cweber

The following code fails with the error message: AttributeError: '*Response' object has no attribute 'Body'

from __go__.os import Stdout as stdout
from __go__.net.http import DefaultClient as client

rsp, err = client.Get("http://www.google.com")
if err is not None:
    raise Exception(err.Error())

_, err = Copy(stdout, rsp.Body)
if err is not None:
    raise Exception(err.Error())

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions