lib

package
Version: v0.0.0-...-e50a933 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2017 License: MIT Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TimeFormat

func TimeFormat(t time.Time, layout string) string

* * 时间格式化,由于golang库的时间格式化难以满足我的需求,因此搞出个简单的替换方式 * layout: * YYYY/YY/Y 表示年,会格式化为4/2位数 * MM/M 表示月,会格式化为两位数,MM个位数会带0 * DD/D 表示日 * HH/H 24进制时间格式 * mm/m 分 * ss/s 表示秒

Types

type SafeMap

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

func NewSafeMap

func NewSafeMap() *SafeMap

func (*SafeMap) Keys

func (sm *SafeMap) Keys() []interface{}

func (*SafeMap) MapIndex

func (sm *SafeMap) MapIndex(key interface{}) (interface{}, bool)

func (*SafeMap) Remove

func (sm *SafeMap) Remove(key interface{})

func (*SafeMap) SetMapIndex

func (sm *SafeMap) SetMapIndex(key interface{}, value interface{})

type Stack

type Stack []interface{}

func NewStack

func NewStack() *Stack

func (*Stack) Empty

func (s *Stack) Empty() bool

func (*Stack) Pop

func (s *Stack) Pop() interface{}

func (*Stack) Push

func (s *Stack) Push(e interface{})

func (*Stack) Size

func (s *Stack) Size() int

Jump to

Keyboard shortcuts

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