Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e205ad6 commit c55e094Copy full SHA for c55e094
websites/code/studygolang/src/model/document.go
@@ -26,8 +26,8 @@ type Document struct {
26
Cmtnum int `json:"cmtnum"`
27
Likenum int `json:"likenum"`
28
29
- HlTitle string // 高亮的标题
30
- HlContent string // 高亮的内容
+ HlTitle string `json:",omitempty"` // 高亮的标题
+ HlContent string `json:",omitempty"` // 高亮的内容
31
}
32
33
func NewDocument(object interface{}, objectExt interface{}) *Document {
0 commit comments