dapr / dapr/go-sdk

Actors example implements non-existent code

Open
#620 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Go
Stars
479
Forks
187
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**

In the documentation found [here](https://docs.dapr.io/developing-applications/sdks/go/go-client/#actors) the documentation lists a struct wrapping the class `actors.Actor` which is not implemented in the go-sdk. The go-sdk implements client and server, but no class `actors.Actor`

**To Reproduce**

Go to the page, read the page, attempt to follow the example creating code like:

```
type ExampleActor struct {
actors.Actor
}
```

Observe the error: `undefined: actors`

**Expected behavior**

The documentation matches the implemented code, and does not implement go classes that cannot be inherited.

The go-sdk implements `actor` not `actors` and has no exported member `Actor` that can be inherited by a struct.

![image](https://github.com/user-attachments/assets/0fbda889-80b4-4107-8e76-fe5a5da2b951)

Contributor guide

Open the contributing guide

Research direction

Open the Actors section at the linked Dapr Go SDK documentation page and compare its example with the implemented Go SDK actor client and server APIs. Update the example so it uses only exported, implemented Go SDK members, then verify that the displayed code no longer refers to `actors.Actor` or the undefined `actors` package.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.