Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package model
- const INDEX = "shared_post"
- type Post struct {
- Id string `json:"id"`
- Title string `json:"title"`
- Posted string `json:"posted"`
- Content string `json:"content"`
- }
- func (p Post) GetIndexName() string {
- return INDEX
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement