events

package
v0.0.0-...-941a20e Latest Latest
Warning

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

Go to latest
Published: May 10, 2017 License: Apache-2.0 Imports: 7 Imported by: 0

README

Step 1: JSON and local storage

The goal of this step is to start encoding and encoding events. For now they will be stored in a global variable protected by a mutex (to avoid data races). This is not optimal because at any point the instance could disappear and we would lose our data.

Don't worry too much about that, the next step takes care of storage with datastore.

Once done, go back to the JSON section.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	Title       string    `json:"title"`
	Description string    `json:"description"`
	Date        time.Time `json:"date"`
	Location    string    `json:"location"`
}

Event contains the information related to an event.

Jump to

Keyboard shortcuts

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