internal

package
v0.0.0-...-3387d28 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func Write

func Write(dbStruct *MongoDBStruct, writerType WriterType, writer io.Writer) error

Types

type Field

type Field struct {
	Name       string
	FQBsonTag  string
	BsonTag    string
	ArrayType  bool
	TypeName   string
	StructType *MongoDBStruct
}

type MongoDBStruct

type MongoDBStruct struct {
	Name          string
	BsonTag       string
	Fields        []*Field
	NestedStructs []*MongoDBStruct
}

func ParseFile

func ParseFile(input io.Reader, explicitStructs string) ([]*MongoDBStruct, error)

func (MongoDBStruct) HasStructsInArray

func (mds MongoDBStruct) HasStructsInArray() bool

type WriterType

type WriterType struct {
	// contains filtered or unexported fields
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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