Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c55e094

Browse files
committed
bugfix
1 parent e205ad6 commit c55e094

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

websites/code/studygolang/src/model/document.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ type Document struct {
2626
Cmtnum int `json:"cmtnum"`
2727
Likenum int `json:"likenum"`
2828

29-
HlTitle string // 高亮的标题
30-
HlContent string // 高亮的内容
29+
HlTitle string `json:",omitempty"` // 高亮的标题
30+
HlContent string `json:",omitempty"` // 高亮的内容
3131
}
3232

3333
func NewDocument(object interface{}, objectExt interface{}) *Document {

0 commit comments

Comments
 (0)