How to do Device Authorization Grant

I am trying to implement Device Authorization Grant in Golang.
is there any example or docs about implantation .
I am trying to do something similar to this: Add the OAuth 2.0 Device Flow to any OAuth Server | Okta Developer.

How about this article? Configure Device Authorization Grant Flow | Okta Developer