Using the golang codersdk
I'd like to use the codersdk to write a simple program for updating my templates. However, when I try to import
github.com/coder/coder/codersdk
, I get the following error when building my program:
Does anyone know how to solve this? Thanks!2 Replies
<#1217318577007366144>
Category
Bug report
Product
Coder OSS (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
I figured this out. I was importing
"github.com/coder/coder/codersdk"
instead of "github.com/coder/coder/v2/codersdk"
I'm now running into the following issue trying to build a simple program to communicate with the Coder API.
Here is my program:
When I try to build this program, I get the following error: