1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
package main import ( "time" ) type CommitResponse struct { ID string `json:"id"` Timestamp time.Time `json:"timestamp"` } type BranchResponse struct { Name string `json:"name"` Commit CommitResponse `json:"commit"` }