util

package
v0.0.0-...-f28cf21 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2014 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const Format_All = "2006-01-02 15:04:05"
View Source
const YYYY_MM_DD = "2006-01-02"

Variables

This section is empty.

Functions

func Format

func Format(t time.Time) string

func Format_Y_M_D

func Format_Y_M_D(t time.Time) string

func Parse

func Parse(t string) (time.Time, error)

Types

type Db

type Db struct {
	// contains filtered or unexported fields
}

func NewDb

func NewDb(database string) *Db

func (*Db) Exec

func (db *Db) Exec(sql string) error

*

  • 执行sql语句

func (*Db) Query

func (db *Db) Query(sql string) (*sql.Rows, error)

Jump to

Keyboard shortcuts

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