load

package
v0.0.0-...-7552b35 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package load provides functionalities to parse and analyze Go source files to discover and retrieve struct type definitions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StructDiscovered

type StructDiscovered struct {
	Name    *types.TypeName
	Obj     *types.Struct
	PkgName string
}

StructDiscovered represents a discovered struct.

func GetStructsFromPath

func GetStructsFromPath(path string) ([]StructDiscovered, error)

GetStructsFromPath find all structs defined in a specific directory path

Jump to

Keyboard shortcuts

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