package
0.0.0-20201026211230-3928e1a599f8
Repository: https://github.com/amusablelemur/argument.git
Documentation: pkg.go.dev
# Functions
Connect prepares the database connection.
CreateUser attempts to insert a new user to the database.
Disconnect the database.
GetPosts loads all the available posts from the database.
GetUser finds a user by ID (if any) and returns it.
SavePost persists a given post to database.
VerifyLogin checks if login information is correct and returns a user ID.