/go-books

Golang Study Project

Primary LanguageGo

Hello

Welcome, this is an initial GoLang study project.

Database

Create a database, you can use sqlite3. Make sure you have it installed on your machine. After create a database file, create the follow table.

  CREATE TABLE IF NOT EXISTS books (
      id INTEGER PRIMARY KEY AUTOINCREMENT,
      title TEXT NOT NULL,
      author TEXT NOT NULL,
      genre TEXT NOT NULL
  );

Run project

To run the project you need to have Golang installed on your machine. So you can using the following command:

  go run cmd/gobook/main