Discover Packages
github.com/akornatskyy/sample-blog-api-go
shared
mock
package
Version:
v0.0.0-...-cf27a83
Opens a new window with list of versions in this module.
Published: May 27, 2023
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Post struct {
ID string `json:"id"`
Created time .Time `json:"created_on"`
AuthorID string `json:"author_id"`
Slug string `json:"slug"`
Title string `json:"title"`
Message string `json:"message"`
}
type User struct {
ID string `json:"id"`
Username string `json:"username"`
PasswordHash string `json:"password_hash"`
IsLocked bool `json:"is_locked"`
FirstName string `json:"first_name"`
LastName string `json:"last_name"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.