golangapi

command module
v0.0.0-...-33485a7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 27, 2020 License: MIT Imports: 9 Imported by: 0

README

GoLang Api

In process of creation of this REST API were used: PostgreSQL, Go-Chi,

DB configuration

Use the change the connection settings of your DB

package main

const (
	DB_USER     = "user"
	DB_PASSWORD = "password"
	DB_username = "dbname"
)

Usage (Main class)

package main

import (
	"database/sql"
	_ "github.com/lib/pq"
)

var (
	db *sql.DB
	a  App
)

func main() {
	a = App{}
	a.Initialize()

	a.Run(":yourport")
}

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL