helper

package
v0.0.0-...-7413aa3 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2015 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AbsPath

func AbsPath(name string) (string, error)

////////////////////////////////////////////////////////////////////////////

func BsonTransfer

func BsonTransfer(src, target interface{}) error

//////////////////////////////////////////////////////////////////////////////

func ConvertString

func ConvertString(val string, tp reflect.Type) (interface{}, error)

//////////////////////////////////////////////////////////////////////////////////

func GetStructFieldTypeFromTag

func GetStructFieldTypeFromTag(entity interface{}, searchTag string) (reflect.Type, error)

//////////////////////////////////////////////////////////////////////////////////

func GetTypeName

func GetTypeName(node interface{}) string

//////////////////////////////////////////////////////////////////////////////

func Inspect

func Inspect(args ...interface{})

func ParseRFC339Time

func ParseRFC339Time(value string) time.Time

///////////////////////////////////////////////////////////////////////////////////////////////

///////////////////////////////////////////////////////////////////////////////////////////////

func PromptYesNo

func PromptYesNo(text string, args ...interface{}) bool

///////////////////////////////////////////////////////////////////////////////////////////////

///////////////////////////////////////////////////////////////////////////////////////////////

Types

type MongoSessionProvider

type MongoSessionProvider struct {
	Session *mgo.Session
}

func (MongoSessionProvider) GetMgoSession

func (p MongoSessionProvider) GetMgoSession(collName string) (*mgo.Session, *mgo.Collection)

Jump to

Keyboard shortcuts

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