Documentation
¶
Index ¶
Constants ¶
View Source
const (
TablePost = "post"
)
Const
Variables ¶
This section is empty.
Functions ¶
func GetTotalPost ¶
GetTotalPost get total post https://pkg.go.dev/go.mongodb.org/mongo-driver/mongo#pkg-examples
Types ¶
type Post ¶
type Post struct { // ID primitive.ObjectID `bson:"_id" json:"id"` ID int64 `bson:"_id" json:"id"` Title string `bson:"title" json:"title"` Body string `bson:"body" json:"body"` CreatedAt time.Time `bson:"created_at" json:"-"` UpdatedAt time.Time `bson:"updated_at" json:"updatedAt"` }
Post struct
func GetPost ¶
GetPost get post https://pkg.go.dev/go.mongodb.org/mongo-driver/mongo#pkg-overview
Click to show internal directories.
Click to hide internal directories.