Archived
1

Refactoring: now we respect gofmt and have some comments

This commit is contained in:
2017-10-18 09:39:50 +04:00
parent 6f374e560e
commit 8dab6c0699
47 changed files with 607 additions and 479 deletions

View File

@@ -8,8 +8,9 @@ import (
"time"
)
// Pokememe is a struct, which represents `pokememes` table item in databse.
type Pokememe struct {
Id int `db:"id"`
ID int `db:"id"`
Grade int `db:"grade"`
Name string `db:"name"`
Description string `db:"description"`
@@ -19,13 +20,12 @@ type Pokememe struct {
Defence int `db:"defence"`
Price int `db:"price"`
Purchaseable bool `db:"purchaseable"`
Image_url string `db:"image_url"`
Player_id int `db:"player_id"`
Created_at time.Time `db:"created_at"`
ImageURL string `db:"image_url"`
PlayerID int `db:"player_id"`
CreatedAt time.Time `db:"created_at"`
}
// Type for handling pokememe with all informations about locations and elements
// PokememeFull is a struct for handling pokememe with all informations about locations and elements
type PokememeFull struct {
Pokememe Pokememe
Locations []Location