gen

package
v0.0.0-...-5a8563e Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package gen for Default Loader

Package gen for Default Loader

Package gen for Default Loader

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug()

Types

type Field

type Field struct {
	IsBasic bool
	Name    string
	Type    string
	Value   string
}

Field represents a field in the struct.

func (Field) IsValid

func (f Field) IsValid() bool

IsValid checks if the field is valid.

type Graph

type Graph struct {
	Package string
	Imports []string
	Structs []*Struct
}

Graph represents the graph structure.

func ParseFromTags

func ParseFromTags(fileName string) (*Graph, error)

ParseFromTags parse default tags from struct.

type Struct

type Struct struct {
	Name            string
	DefaultFuncName string
	Fields          []*Field
}

Struct represents the structure.

func (Struct) IsValid

func (s Struct) IsValid() bool

IsValid checks if the struct is valid.

Jump to

Keyboard shortcuts

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