gitee.com/openeuler/go-gitee@v0.0.0-20220530104019-3af895bc380c/gitee/hook_labelhokk_accessors.go (about) 1 package gitee 2 3 func (l *LabelHook) GetName() string { 4 if l == nil { 5 return "" 6 } 7 8 return l.Name 9 } 10 11 func (l *LabelHook) GetColor() string { 12 if l == nil { 13 return "" 14 } 15 16 return l.Color 17 }