Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2019
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. package model
  2.  
  3. const INDEX = "shared_post"
  4.  
  5. type Post struct {
  6. Id string `json:"id"`
  7. Title string `json:"title"`
  8. Posted string `json:"posted"`
  9. Content string `json:"content"`
  10. }
  11.  
  12. func (p Post) GetIndexName() string {
  13. return INDEX
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement