types

package module
v0.0.0-...-455db25 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2014 License: BSD-2-Clause Imports: 2 Imported by: 3

README

types

Common types

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStringSignal

func NewStringSignal(str string, x interface{}) os.Signal

NewStringSignal 返回字符串 os.Signal 信号.

Types

type ContentDir

type ContentDir http.Dir

type Role

type Role uint64

Role 用于角色控制, 参见 github.com/typepress/accessflags

type StringSignal

type StringSignal struct {
	Str string
	X   interface{}
}

字符串信号, 实现 os.Signal 接口

func (*StringSignal) Signal

func (ss *StringSignal) Signal()

func (*StringSignal) String

func (ss *StringSignal) String() string

type TemplateDir

type TemplateDir http.Dir

type Translator

type Translator interface {
	Sprint(v ...interface{}) string
	Sprintf(format string, v ...interface{}) string
	Source(src string)
}

i18n 翻译器接口.

Jump to

Keyboard shortcuts

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