Discover Packages
github.com/rmrobinson-textnow/howtodox
golang
jsonapi
package
Version:
v0.0.0-...-c6890f0
Opens a new window with list of versions in this module.
Published: Jul 31, 2019
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 3
Opens a new window with list of known importers.
Documentation
Documentation
¶
API is a handle to an instance of the API.
NewAPI creates a new instance of an API with the specified URL.
GetPosts retrieves a collection of post entries from the API and returns them, or an error.
type Post struct {
UserID int `json:"userId"`
ID int `json:"id"`
Title string `json:"title"`
Body string
}
Post represents a single post
Source Files
¶
Directories
¶
cmd
Click to show internal directories.
Click to hide internal directories.