util

package
v0.0.0-...-d3c47bb Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2015 License: BSD-3-Clause Imports: 4 Imported by: 2

Documentation

Overview

Package util provides various utilities.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FPrintlnErr

func FPrintlnErr(a ...interface{})

FPrintlnErr wraps fmt.Fprintln and use os.Stderr as output stream.

func FindFeatureID

func FindFeatureID(db *sql.DB, featureName string) (int64, error)

FindFeatureID returns a feature ID, given its name.

func OpenDBSession

func OpenDBSession(cfg config.DatabaseConfig) (*sql.DB, error)

OpenDBSession creates a session to the database.

Types

This section is empty.

Jump to

Keyboard shortcuts

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