с
Size: a a a
с
АК
DB
p
АК
с
C
𝘀
АС
github.com/xanzy/go-gitlab
(struct { Previous []gitlab.Label "json:\"previous\""; Current []gitlab.Label "json:\"current\"" }) {
Previous: ([]gitlab.Label) {
},
Current: ([]gitlab.Label) (len=1 cap=4) {
(gitlab.Label) gitlab.Label{ID:15120961, Name:"IN TEST", Color:"D10069", TextColor:"", Description:"в процессе тестирования, если есть замечания - лейбл не меняется", OpenIssuesCount:0, ClosedIssuesCount:0, OpenMergeRequestsCount:0, Subscribed:false, Priority:0, IsProjectLabel:false}
}
}
github.com/oliveagle/jsonpath
res, err := jsonpath.JsonPathLookup(event.Changes.Labels, "$.Current")
...
spew.Dump(res)
object is not map
Z
github.com/xanzy/go-gitlab
(struct { Previous []gitlab.Label "json:\"previous\""; Current []gitlab.Label "json:\"current\"" }) {
Previous: ([]gitlab.Label) {
},
Current: ([]gitlab.Label) (len=1 cap=4) {
(gitlab.Label) gitlab.Label{ID:15120961, Name:"IN TEST", Color:"D10069", TextColor:"", Description:"в процессе тестирования, если есть замечания - лейбл не меняется", OpenIssuesCount:0, ClosedIssuesCount:0, OpenMergeRequestsCount:0, Subscribed:false, Priority:0, IsProjectLabel:false}
}
}
github.com/oliveagle/jsonpath
res, err := jsonpath.JsonPathLookup(event.Changes.Labels, "$.Current")
...
spew.Dump(res)
object is not map
АС
Z
АС
АС
Z