generator

package
v0.0.0-...-0bfb5ad Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	Name          string
	Content       string
	IsNew         bool
	BackupContent string
}

func (*File) Clone

func (f *File) Clone() *File

type Generator

type Generator interface {
	// Name 返回生成器的名称
	Name() string

	// Generate 生成代码
	Generate() error
}

type IdlType

type IdlType string
const (
	Proto  IdlType = "proto"
	Thrift IdlType = "thrift"
)

func IDLTypeFromString

func IDLTypeFromString(s string) IdlType

func (IdlType) IsValid

func (i IdlType) IsValid() bool

func (IdlType) String

func (i IdlType) String() string

Jump to

Keyboard shortcuts

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