foo

package module
v0.0.0-...-4a20ed2 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2014 License: MIT Imports: 3 Imported by: 0

README

foo

foo is Misc Collection for Go 实验性

Documentation

Index

Constants

View Source
const (
	ANSIC       = "Mon Jan _2 15:04:05 2006"
	UnixDate    = "Mon Jan _2 15:04:05 MST 2006"
	Stamp       = "Jan _2 15:04:05"
	StampMilli  = "Jan _2 15:04:05.000"
	StampMicro  = "Jan _2 15:04:05.000000"
	StampNano   = "Jan _2 15:04:05.000000000"
	Kitchen     = "3:04PM"
	RFC822      = "02 Jan 06 15:04 MST"
	RFC822Z     = "02 Jan 06 15:04 -0700"
	RFC3339     = "2006-01-02T15:04:05Z07:00"
	YMD         = "2006-01-02 15:04:05"
	YMDMST      = "2006-01-02 15:04:05 MST"
	YMDZ        = "2006-01-02 15:04:05 -0700"
	RFC3339Nano = "2006-01-02T15:04:05.999999999Z07:00"
	RubyDate    = "Mon Jan 02 15:04:05 -0700 2006"
	RFC1123Z    = "Mon, 02 Jan 2006 15:04:05 -0700"
	RFC850      = "Monday, 02-Jan-06 15:04:05 MST"
	RFC1123     = "Mon, 02 Jan 2006 15:04:05 MST"
)

时间格式

Variables

This section is empty.

Functions

func Alert

func Alert(err error)

func ErrIfy

func ErrIfy(v ...interface{}) bool

func Offset

func Offset(bs []byte, delim byte) int

在 bs 中查找 delim 找到返回 delim 的 offset 找不到返回 len(line)

func Pln

func Pln(arg ...interface{})

func TimeLayout

func TimeLayout(s string) string

猜测时间字符串风格, 返回值:字符串风格,猜测失败返回空字符串

Types

type Bar

type Bar interface {
	Bar(Bar) Bar
}

type Foo

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

func (*Foo) Bar

func (foo *Foo) Bar(bar Bar) Bar

Directories

Path Synopsis
blk 读音同 block,是对原始数据进行分块传送/接收的通讯协议 例如用于 TCPConn 长连接下的交互通讯。
blk 读音同 block,是对原始数据进行分块传送/接收的通讯协议 例如用于 TCPConn 长连接下的交互通讯。
类型复合在开发中很常见,多数情况下,内层类型访问外层类型的属性,需要使用 reflect 包完成。
类型复合在开发中很常见,多数情况下,内层类型访问外层类型的属性,需要使用 reflect 包完成。

Jump to

Keyboard shortcuts

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