utils

package
v0.0.0-...-a17cce0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2016 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DB

func DB(url, db string) (*mgo.Database, error)

func Marshal

func Marshal(in interface{}) (*models.Response, error)

func MarshalAndWrite

func MarshalAndWrite(w io.Writer, in interface{}) error

func Unmarshal

func Unmarshal(data []byte, target interface{}) error

Types

type ServerInfo

type ServerInfo struct{}

func (ServerInfo) GetBaseURL

func (i ServerInfo) GetBaseURL() string

func (ServerInfo) GetPrefix

func (i ServerInfo) GetPrefix() string

Jump to

Keyboard shortcuts

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