data

package
v1.2.0-beta5 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2021 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Overview

Package data 加载位于 datapath 的小作文

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthText        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowText          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupText = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (

	// Array 小作文数组指针
	Array = &compo.Array
)

Functions

func AddText

func AddText(txt string) error

AddText 添加小作文

func LoadText

func LoadText() error

LoadText 加载小作文

Types

type Composition

type Composition struct {
	Array                []string `protobuf:"bytes,1,rep,name=array,proto3" json:"array,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Composition) Descriptor

func (*Composition) Descriptor() ([]byte, []int)

func (*Composition) GetArray

func (m *Composition) GetArray() []string

func (*Composition) Marshal

func (m *Composition) Marshal() (dAtA []byte, err error)

func (*Composition) MarshalTo

func (m *Composition) MarshalTo(dAtA []byte) (int, error)

func (*Composition) MarshalToSizedBuffer

func (m *Composition) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Composition) ProtoMessage

func (*Composition) ProtoMessage()

func (*Composition) Reset

func (m *Composition) Reset()

func (*Composition) Size

func (m *Composition) Size() (n int)

func (*Composition) String

func (m *Composition) String() string

func (*Composition) Unmarshal

func (m *Composition) Unmarshal(dAtA []byte) error

func (*Composition) XXX_DiscardUnknown

func (m *Composition) XXX_DiscardUnknown()

func (*Composition) XXX_Marshal

func (m *Composition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Composition) XXX_Merge

func (m *Composition) XXX_Merge(src proto.Message)

func (*Composition) XXX_Size

func (m *Composition) XXX_Size() int

func (*Composition) XXX_Unmarshal

func (m *Composition) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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