harbor run -t openthoughts/tasktrove-exp-rpt-stack-go-v4-stack-go-3372harbor download openthoughts/tasktrove-exp-rpt-stack-go-v4-stack-go-3372Implement the GitService in the /app/ directory that interfaces with the GitHub API to manage Git references (refs). This service should include methods for retrieving, listing, creating, updating, and deleting refs as outlined below:
GetRef(owner string, repo string, ref string) (*Reference, *Response, error):
Reference object which contains the ref details including Ref, URL, and Object (which in turn contains Type, SHA, and URL).ListRefs(owner string, repo string) ([]*Reference, *Response, error):
Reference objects.CreateRef(owner string, repo string, reference *Reference) (*Reference, *Response, error):
reference parameter should define the reference's details with Ref and Object (including the SHA).Reference.UpdateRef(owner string, repo string, reference *Reference, force bool) (*Reference, *Response, error):
reference parameter should contain the updated SHA and the Ref name (e.g., "heads/b").force parameter to indicate if the update should be forced.Reference.DeleteRef(owner string, repo string, ref string) (*Response, error):
Make sure to structure your code clearly and follow Go best practices.
Important: declare your solution in package github (the test file uses package github, so the implementation must use the matching package name).