package
0.0.0-20160311174752-1561ecf7722e
Repository: https://github.com/hoenirvili/restinggopher.git
Documentation: pkg.go.dev

# Functions

*/ ArticleJSON return article JSON format from joining multiple tables Article, Cateogries, Image, Comment, Users.
CategoriesJSON readss from rows object and return all the info in JSON frormat.
NewOpen returns a new db type object basically returns a db object to make a connection to mysql/maria db.
NewPayload return new JSON response payload.
OneArticleJSON makes query and responds with one article in json format.
OneCategoryJSON return one row from Category table JSON format.

# Variables

ErrNoContent no body response sql interogation.

# Structs

Articles struct serializable json response.
Categories struct serializable json response.
Comment struct serializable json response.
DB struct pointer to sql.DB sql.Open return handler for database database/sql package manages a pool of connections in the background and dosen't open any connections util you need them.
ErrSQL struct for internal purpose error handleing.
Image struct serializable json response.
Payload json fromat.
User struct serializable json response.