mgo

package
v1.0.11 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetGoType

func GetGoType(exp ast.Expr) string

Types

type Document

type Document struct {
	Package       string
	Name          string
	GoName        string
	ImportTime    bool
	Fields        []*Field
	ObjectIDField *Field
}

func ParseMongoStruct

func ParseMongoStruct(filePath, structName string) *Document

type Field

type Field struct {
	Name   string
	GoName string
	GoType string
	Tag    string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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