update docstring in go client, better code format (#19268)

* update docstring in go client, better code format

* update samples
This commit is contained in:
William Cheng
2024-07-30 21:17:21 +08:00
committed by GitHub
parent 5d48d224d9
commit 9a18fc1857
19 changed files with 4 additions and 46 deletions

View File

@@ -108,7 +108,6 @@ func (o *Pet) SetName(v string) {
o.Name = v
}
// GetCategory returns the Category field value if set, zero value otherwise.
func (o *Pet) GetCategory() Category {
if o == nil || IsNil(o.Category) {
@@ -165,7 +164,6 @@ func (o *Pet) SetPhotoUrls(v []string) {
o.PhotoUrls = v
}
// GetTags returns the Tags field value if set, zero value otherwise.
func (o *Pet) GetTags() []Tag {
if o == nil || IsNil(o.Tags) {