Skip to content

gagarinfan/GoLang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GoLang

My first steps with GoLang

About application

This application is a simple REST app that stores people in database (here sqlite). People is golang's struct that store:

  • id (primary key)
  • name
  • surname
  • age
  • hobby
  • active (is active? which is int 1 as true or 0 as false)

Initialize database

Simple SQL to create table if not exist:

CREATE TABLE IF NOT EXISTS peoples(id INTEGER PRIMARY KEY, name TEXT, surname TEXT, age INTEGER, hobby STRING, active INTEGER);

About

My first steps with GoLang

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages