productapp

package
v0.0.0-...-69b6fab Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Router *mux.Router
	DB     *datastore.Client
}

App is the center of it all

func (*App) Initialize

func (a *App) Initialize()

Initialize sets up the app

func (*App) Run

func (a *App) Run(addr string)

Run runs the app

type Product

type Product struct {
	ID    *datastore.Key `json:"id" datastore:"__key__"`
	Name  string         `json:"name"`
	Price float32        `json:"price"`
}

Product has the basic info about the Product

Jump to

Keyboard shortcuts

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