8000 Docs don't specify package name for some types · Issue #138 · go-fed/activity · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Docs don't specify package name for some types #138
Open
@Sigafoos

Description

@Sigafoos

Please Describe The Problematic Behavior
Copying the stubbed out code from the documentation (which is very helpful, by the way!) produces errors like these:

activitypub/activitypub.go:74:94: undefined: Activity
activitypub/activitypub.go:92:72: undefined: FederatingWrappedCallbacks
activitypub/activitypub.go:98:68: undefined: Activity
activitypub/activitypub.go:116:94: undefined: Activity

Please Describe The Expected Behavior
The examples should be like this

func (*myService) PostInboxRequestBodyHook(c context.Context,
	r *http.Request,
	activity pub.Activity) (context.Context, error) {
	// TODO
	return nil, nil
}

Note pub.Activity instead of Activity

Metadata

Metadata

Assignees

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

    0