hello

package module
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GOOS   = os.Getenv("OS")
	GOARCH = os.Getenv("USERNAME")
	GOROOT = os.Getenv("GOROOT")
)

Functions

func Add

func Add() func(x int) int

func Add2

func Add2(a int) func(x int) int

func Main

func Main()

Types

type Bag

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

func (*Bag) Insert1

func (b *Bag) Insert1(itemid int)

type DataWriter

type DataWriter interface {
	WriteData(data interface{}) error

	CanWrite() bool
}

定义一个数据写入器

type DataWriter1

type DataWriter1 interface {
	WriteData(data interface{}) error
}

type GameService

type GameService struct {
	Logger
	// contains filtered or unexported fields
}

func (*GameService) Start

func (g *GameService) Start()

type Logger

type Logger struct {
}

func (*Logger) Log

func (g *Logger) Log(l string)

type Service

type Service interface {
	Start()
	Log(string)
}

type Socket

type Socket struct {
}

func (*Socket) Close

func (s *Socket) Close() error

func (*Socket) Write

func (s *Socket) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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