db

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2022 License: LGPL-2.1 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Garbage

type Garbage struct {
	Name        string `csv:"Name"`
	GarbageType string `csv:"GarbageType"`
	DetailType  string `csv:"DetailType"`
	Description string `csv:"Description"`
	Url         string `csv:"Url"`
}

type GarbageDB

type GarbageDB map[string]Garbage

func InitDb

func InitDb(csvBytes []byte) (*GarbageDB, error)

func (GarbageDB) Find

func (db GarbageDB) Find(name string) (*Garbage, bool)

Jump to

Keyboard shortcuts

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