env

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package env has a type to store common environment related items sql db, logger, etc. as well as a constructor-like function to instantiate it

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Env

type Env struct {
	Db     *sql.DB
	Logger *zap.Logger
}

Env type stores common environment related items

func Init

func Init() (*Env, error)

Init Constructs Env type to be passed around to functions

Jump to

Keyboard shortcuts

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