I'm wondering if there's a way to comment on a Google Classroom assignment/post through the Google Classroom API (specifically the Go client). I've searched the docs but couldn't find anything.
As of the moment, there is no direct method to do comment on assignment/post in Class API. You can visit this to check what available actions is feasible with the current API. You can file a feature request and follow the updates in the official blog.