proto

package
v0.0.0-...-272d833 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	String = "string"
	Double = "double"
	Int8   = "int8"
	Int16  = "int16"
	Int32  = "int32"
	Int64  = "int64"
	Bool   = "bool"
)

Variables

This section is empty.

Functions

func Generate

func Generate(opt Options) ([]byte, error)

func MakeProto

func MakeProto(pkgName, goPackage, name string, properties []string) ([]byte, error)

MakeProto takes in all of the fields and parse it to proto

func TransformTypeToPtype

func TransformTypeToPtype(name string) string

Types

type Options

type Options struct {
	File         string
	TargetStruct string
	PackageName  string
	Name         string
	GoPackage    string
}

Jump to

Keyboard shortcuts

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