vulnerable

package
v0.0.0-...-822f4bf Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Open

func Open(filepath string) (*os.File, error)

func PrepareSQLDB

func PrepareSQLDB(nbEntries int) (*sql.DB, error)

func System

func System(ctx context.Context, cmd string) ([]byte, error)

Types

type Product

type Product struct {
	Id       int
	Name     string
	Category string
	Price    string
}

func GetProducts

func GetProducts(ctx context.Context, db *sql.DB, category string) ([]Product, error)

Jump to

Keyboard shortcuts

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