Documentation ¶
Index ¶
- Variables
- func FJSONPB(w io.Writer, m protoreflect.ProtoMessage) error
- func FTextPB(w io.Writer, m protoreflect.ProtoMessage) error
- func FromPB(pbPath string, fs afero.Fs) (*sysl.Module, error)
- func FromPBByteContents(pbPath string, contents []byte) (*sysl.Module, error)
- func FromPBStringContents(pbPath, contents string) (*sysl.Module, error)
- func GeneratePBBinaryMessage(w io.Writer, m protoreflect.ProtoMessage) error
- func GeneratePBBinaryMessageFile(m protoreflect.ProtoMessage, filename string, fs afero.Fs) error
- func JSONPB(m protoreflect.ProtoMessage, filename string, fs afero.Fs) error
- func TextPB(m protoreflect.ProtoMessage, filename string, fs afero.Fs) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnknownExtension = errors.New("unknown extension")
Functions ¶
func FromPB ¶ added in v0.374.0
FromPB unmarshals a Sysl module from an encoded protobuf message file.
func FromPBByteContents ¶ added in v0.533.0
FromPBByteContents unmarshals a Sysl module from an encoded protobuf message.
func FromPBStringContents ¶ added in v0.533.0
FromPBStringContents unmarshals a Sysl module from an encoded protobuf message.
func GeneratePBBinaryMessage ¶ added in v0.122.0
func GeneratePBBinaryMessage(w io.Writer, m protoreflect.ProtoMessage) error
GeneratePBBinaryMessage generates binary message to IO writer specified by `w`.
func GeneratePBBinaryMessageFile ¶ added in v0.122.0
func GeneratePBBinaryMessageFile(m protoreflect.ProtoMessage, filename string, fs afero.Fs) error
GeneratePBBinaryMessageFile generates binary message to the file specified by `filename`.
func JSONPB ¶
func JSONPB(m protoreflect.ProtoMessage, filename string, fs afero.Fs) error
JSONPB ...
func TextPB ¶
func TextPB(m protoreflect.ProtoMessage, filename string, fs afero.Fs) error
TextPB ...
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.