model

package
v0.1.47 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

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

Context 执行环境

func GetContext

func GetContext(writer io.Writer) *Context

GetContext 创建一个单例的Context

func (*Context) GetWriter

func (c *Context) GetWriter() io.Writer

GetWriter 获取Writer

func (*Context) Print

func (c *Context) Print(a ...interface{}) (n int, err error)

Print 打印一行

func (*Context) PrintErr

func (c *Context) PrintErr(uerr error) (n int, err error)

PrintErr 打印错误

func (*Context) Printf

func (c *Context) Printf(format string, a ...interface{}) (n int, err error)

Printf 根据格式字符串打印

func (*Context) Println

func (c *Context) Println(a ...interface{}) (n int, err error)

Println 打印一行

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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