Documentation ¶
Overview ¶
Package data 加载位于 datapath 的小作文
Index ¶
- Variables
- func AddText(txt string) error
- func LoadText() error
- type Composition
- func (*Composition) Descriptor() ([]byte, []int)
- func (m *Composition) GetArray() []string
- func (m *Composition) Marshal() (dAtA []byte, err error)
- func (m *Composition) MarshalTo(dAtA []byte) (int, error)
- func (m *Composition) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Composition) ProtoMessage()
- func (m *Composition) Reset()
- func (m *Composition) Size() (n int)
- func (m *Composition) String() string
- func (m *Composition) Unmarshal(dAtA []byte) error
- func (m *Composition) XXX_DiscardUnknown()
- func (m *Composition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Composition) XXX_Merge(src proto.Message)
- func (m *Composition) XXX_Size() int
- func (m *Composition) XXX_Unmarshal(b []byte) error
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 ¶
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) 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
Click to show internal directories.
Click to hide internal directories.