Help us shape the future of Go! Take the 2026 Go Developer Survey

files

package
v0.1.55 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReadFileRequest

type ReadFileRequest struct {

	// Name is the file's path below the mod's directories, such as
	// "areas.yaml" or "maps/dl_midtown.json": relative, with "/" between
	// segments, and no "." or ".." segment.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

ReadFileRequest names one of the mod's files.

func (*ReadFileRequest) CloneMessageVT

func (m *ReadFileRequest) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*ReadFileRequest) CloneVT

func (m *ReadFileRequest) CloneVT() *ReadFileRequest

func (*ReadFileRequest) EqualMessageVT

func (this *ReadFileRequest) EqualMessageVT(thatMsg any) bool

func (*ReadFileRequest) EqualVT

func (this *ReadFileRequest) EqualVT(that *ReadFileRequest) bool

func (*ReadFileRequest) GetName

func (x *ReadFileRequest) GetName() string

func (*ReadFileRequest) MarshalJSON

func (x *ReadFileRequest) MarshalJSON() ([]byte, error)

MarshalJSON marshals the ReadFileRequest to JSON.

func (*ReadFileRequest) MarshalProtoJSON

func (x *ReadFileRequest) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the ReadFileRequest message to JSON.

func (*ReadFileRequest) MarshalProtoText

func (x *ReadFileRequest) MarshalProtoText() string

func (*ReadFileRequest) MarshalToSizedBufferVT

func (m *ReadFileRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*ReadFileRequest) MarshalToVT

func (m *ReadFileRequest) MarshalToVT(dAtA []byte) (int, error)

func (*ReadFileRequest) MarshalVT

func (m *ReadFileRequest) MarshalVT() (dAtA []byte, err error)

func (*ReadFileRequest) ProtoMessage

func (*ReadFileRequest) ProtoMessage()

func (*ReadFileRequest) Reset

func (x *ReadFileRequest) Reset()

func (*ReadFileRequest) SizeVT

func (m *ReadFileRequest) SizeVT() (n int)

func (*ReadFileRequest) String

func (x *ReadFileRequest) String() string

func (*ReadFileRequest) UnmarshalJSON

func (x *ReadFileRequest) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the ReadFileRequest from JSON.

func (*ReadFileRequest) UnmarshalProtoJSON

func (x *ReadFileRequest) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the ReadFileRequest message from JSON.

func (*ReadFileRequest) UnmarshalVT

func (m *ReadFileRequest) UnmarshalVT(dAtA []byte) error

type ReadFileResponse

type ReadFileResponse struct {

	// Text is the file's UTF-8 text, or unset when neither directory holds
	// the file.
	Text *string `protobuf:"bytes,1,opt,name=text,proto3,oneof" json:"text,omitempty"`
	// contains filtered or unexported fields
}

ReadFileResponse holds a file's text.

func (*ReadFileResponse) CloneMessageVT

func (m *ReadFileResponse) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*ReadFileResponse) CloneVT

func (m *ReadFileResponse) CloneVT() *ReadFileResponse

func (*ReadFileResponse) EqualMessageVT

func (this *ReadFileResponse) EqualMessageVT(thatMsg any) bool

func (*ReadFileResponse) EqualVT

func (this *ReadFileResponse) EqualVT(that *ReadFileResponse) bool

func (*ReadFileResponse) GetText

func (x *ReadFileResponse) GetText() string

func (*ReadFileResponse) MarshalJSON

func (x *ReadFileResponse) MarshalJSON() ([]byte, error)

MarshalJSON marshals the ReadFileResponse to JSON.

func (*ReadFileResponse) MarshalProtoJSON

func (x *ReadFileResponse) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the ReadFileResponse message to JSON.

func (*ReadFileResponse) MarshalProtoText

func (x *ReadFileResponse) MarshalProtoText() string

func (*ReadFileResponse) MarshalToSizedBufferVT

func (m *ReadFileResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*ReadFileResponse) MarshalToVT

func (m *ReadFileResponse) MarshalToVT(dAtA []byte) (int, error)

func (*ReadFileResponse) MarshalVT

func (m *ReadFileResponse) MarshalVT() (dAtA []byte, err error)

func (*ReadFileResponse) ProtoMessage

func (*ReadFileResponse) ProtoMessage()

func (*ReadFileResponse) Reset

func (x *ReadFileResponse) Reset()

func (*ReadFileResponse) SizeVT

func (m *ReadFileResponse) SizeVT() (n int)

func (*ReadFileResponse) String

func (x *ReadFileResponse) String() string

func (*ReadFileResponse) UnmarshalJSON

func (x *ReadFileResponse) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the ReadFileResponse from JSON.

func (*ReadFileResponse) UnmarshalProtoJSON

func (x *ReadFileResponse) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the ReadFileResponse message from JSON.

func (*ReadFileResponse) UnmarshalVT

func (m *ReadFileResponse) UnmarshalVT(dAtA []byte) error

type WriteFileRequest

type WriteFileRequest struct {

	// Name is the file's path, as ReadFileRequest names it.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Text is the file's new UTF-8 text.
	Text string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"`
	// contains filtered or unexported fields
}

WriteFileRequest replaces one of the mod's files.

func (*WriteFileRequest) CloneMessageVT

func (m *WriteFileRequest) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*WriteFileRequest) CloneVT

func (m *WriteFileRequest) CloneVT() *WriteFileRequest

func (*WriteFileRequest) EqualMessageVT

func (this *WriteFileRequest) EqualMessageVT(thatMsg any) bool

func (*WriteFileRequest) EqualVT

func (this *WriteFileRequest) EqualVT(that *WriteFileRequest) bool

func (*WriteFileRequest) GetName

func (x *WriteFileRequest) GetName() string

func (*WriteFileRequest) GetText

func (x *WriteFileRequest) GetText() string

func (*WriteFileRequest) MarshalJSON

func (x *WriteFileRequest) MarshalJSON() ([]byte, error)

MarshalJSON marshals the WriteFileRequest to JSON.

func (*WriteFileRequest) MarshalProtoJSON

func (x *WriteFileRequest) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the WriteFileRequest message to JSON.

func (*WriteFileRequest) MarshalProtoText

func (x *WriteFileRequest) MarshalProtoText() string

func (*WriteFileRequest) MarshalToSizedBufferVT

func (m *WriteFileRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*WriteFileRequest) MarshalToVT

func (m *WriteFileRequest) MarshalToVT(dAtA []byte) (int, error)

func (*WriteFileRequest) MarshalVT

func (m *WriteFileRequest) MarshalVT() (dAtA []byte, err error)

func (*WriteFileRequest) ProtoMessage

func (*WriteFileRequest) ProtoMessage()

func (*WriteFileRequest) Reset

func (x *WriteFileRequest) Reset()

func (*WriteFileRequest) SizeVT

func (m *WriteFileRequest) SizeVT() (n int)

func (*WriteFileRequest) String

func (x *WriteFileRequest) String() string

func (*WriteFileRequest) UnmarshalJSON

func (x *WriteFileRequest) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the WriteFileRequest from JSON.

func (*WriteFileRequest) UnmarshalProtoJSON

func (x *WriteFileRequest) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the WriteFileRequest message from JSON.

func (*WriteFileRequest) UnmarshalVT

func (m *WriteFileRequest) UnmarshalVT(dAtA []byte) error

Jump to

Keyboard shortcuts

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