monster

package
v0.0.0-...-e41ca22 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2023 License: GPL-3.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 Monster

type Monster struct {
	Name  string
	Age   int
	Skill string
}

func (*Monster) ReStore

func (this *Monster) ReStore() bool

给Monster绑定方法ReStore, 可以将一个序列化的Monster,从文件中读取, 并反序列化为Monster对象,检查反序列化,名字正确

func (*Monster) Store

func (this *Monster) Store() bool

Jump to

Keyboard shortcuts

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