models

package
v0.0.0-...-aaacf6c Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2017 License: Apache-2.0 Imports: 0 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Schema

type Schema struct {
	User []*User
}

The "schema" for the database is simply a struct that contains a slice of pointers to all of your structs. In this fashion your structs act as database tables. The struct feilds act as database columns And every item within the slice of pointser for the Schema struct is a row of data.

type User

type User struct {
	Email    string
	Password string
	Username string
}

Jump to

Keyboard shortcuts

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