Skip to content

Support protobufs under gopherjs #154

Closed
@adg

Description

@adg

Like App Engine, gopherjs does not support package unsafe.

The work-around on App Engine is to provide a slower, reflection-based version of the protobuf codec that is only built when the appengine build tag is specified.

I propose adding the js build tag (specified when building Go code with gopherjs) to the pointer_reflect.go and pointer_unsafe.go files alongside the appengine tag.

Any objections?

cc @dsymonds @robpike

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