types

package
v0.0.0-...-d598083 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// for errors and the like
	Mt_DisplayName_Function  = "Function"
	Mt_DisplayName_Variable  = "Variable"
	Mt_DisplayName_Constant  = "Constant"
	Mt_DisplayName_Structure = "Structure"
	Mt_DisplayName_Interface = "Interface"

	// for the enum
	Mt_DisplayName_Functions  = "Functions"
	Mt_DisplayName_Variables  = "Variables"
	Mt_DisplayName_Constants  = "Constants"
	Mt_DisplayName_Structures = "Structures"
	Mt_DisplayName_Interfaces = "Interfaces"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type GoItem

type GoItem struct {
	Name    string
	Members map[MemberType]IMembers
}

func NewGoItem

func NewGoItem(name string) GoItem

func (GoItem) Create

func (gi GoItem) Create(gm IMember) (GoItem, error)

func (GoItem) Delete

func (gi GoItem) Delete(mt MemberType, name string) (GoItem, error)

func (GoItem) IsPublic

func (str GoItem) IsPublic() bool

func (GoItem) Read

func (gi GoItem) Read(mt MemberType, name string) (IMember, error)

func (GoItem) Update

func (gi GoItem) Update(gm IMember) (GoItem, error)

type GoMember

type GoMember struct {
	IMember
	// contains filtered or unexported fields
}

func NewGoMember

func NewGoMember(name string, t MemberType) GoMember

func NewGoPtrMember

func NewGoPtrMember(name string, t MemberType) GoMember

func (GoMember) GetName

func (gm GoMember) GetName() string

func (GoMember) GetType

func (gm GoMember) GetType() MemberType

func (GoMember) HasPointerPrefix

func (gm GoMember) HasPointerPrefix() bool

func (GoMember) IsPublic

func (gm GoMember) IsPublic() bool

func (GoMember) SetName

func (gm GoMember) SetName(name string) IMember

func (GoMember) SetPointerPrefix

func (gm GoMember) SetPointerPrefix(ptr bool) IMember

func (GoMember) SetType

func (gm GoMember) SetType(mtype MemberType) IMember

type GoMembers

type GoMembers struct {
	IMembers
	// contains filtered or unexported fields
}

func (GoMembers) Add

func (gms GoMembers) Add(memb IMember) (IMembers, error)

func (GoMembers) Clear

func (gms GoMembers) Clear(name string) (IMembers, error)

func (GoMembers) GetAllPointers

func (gms GoMembers) GetAllPointers() map[string]IMember

func (GoMembers) GetAllReferences

func (gms GoMembers) GetAllReferences() map[string]IMember

func (GoMembers) GetMember

func (gms GoMembers) GetMember(name string) (IMember, error)

func (GoMembers) GetType

func (gms GoMembers) GetType() MemberType

func (GoMembers) SetType

func (gms GoMembers) SetType(mtype MemberType) IMembers

func (GoMembers) Update

func (gms GoMembers) Update(memb IMember) (IMembers, error)

type IMember

type IMember interface {
	IsPublic() bool
	HasPointerPrefix() bool
	SetPointerPrefix(bool) IMember
	GetName() string
	SetName(string) IMember
	GetType() MemberType
	SetType(MemberType) IMember
}

type IMembers

type IMembers interface {
	GetType() MemberType
	SetType(MemberType) IMembers
	Add(IMember) (IMembers, error)
	Update(IMember) (IMembers, error)
	Clear(string) (IMembers, error)
	GetMember(string) (IMember, error)
	GetAllPointers() map[string]IMember
	GetAllReferences() map[string]IMember
}

func NewGoMembers

func NewGoMembers(mt MemberType) IMembers

type MemberType

type MemberType int
const (
	Mt_Functions  MemberType = 0
	Mt_Variables  MemberType = 1
	Mt_Constants  MemberType = 2
	Mt_Structures MemberType = 3
	Mt_Interfaces MemberType = 4
)

func (MemberType) String

func (mt MemberType) String() string

Jump to

Keyboard shortcuts

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