Skip to content

Instantly share code, notes, and snippets.

@geor-kasapidi
Created March 20, 2020 11:35
Show Gist options
  • Select an option

  • Save geor-kasapidi/7d874b19d44def98020fae9aaec38ef6 to your computer and use it in GitHub Desktop.

Select an option

Save geor-kasapidi/7d874b19d44def98020fae9aaec38ef6 to your computer and use it in GitHub Desktop.
type Blog_LastArticle struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// id статьи
Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
// название
Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
// автор
User *Common_UserLink `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"`
// дата создания
Date *timestamp.Timestamp `protobuf:"bytes,4,opt,name=date,proto3" json:"date,omitempty"`
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment