ory/docs

Example to Use Admin UI Doesn't Compile

Closed this issue · 3 comments

Preflight checklist

Describe the bug

The example here does not compile: https://www.ory.sh/docs/kratos/sdk/go#use-admin-api

@vinckr following up from our Slack conversation.

Reproducing the bug

Copy the code and try to compile with go 1.20

Relevant log output

No response

Relevant configuration

No response

Version

v1.1.21

On which operating system are you observing this issue?

Linux

In which environment are you deploying?

Other

Additional Context

No response

Hello @russoj88
I have since made some updates to the examples.
Can you check again please?
Admin API examples has been moved to here: https://www.ory.sh/docs/kratos/sdk/go#use-identity-management-api

Yes, that compiles now.

Thanks @vinckr !

great :)
FWIW here are more examples: https://github.com/ory/docs/tree/master/code-examples/sdk
(I will add them directly to the sdk examples as well soon, just need to figure out a good testing strategy)