Documentation ¶
Index ¶
- Constants
- func TestFunc(s string) string
- type AddressBookPerson
- type AddressBookPerson2
- type BetterPerson
- type Constant
- type ConstantBlock
- type Field
- type Function
- type Generics
- type Import
- type ImportPath
- type Imports
- type List
- type MapType
- type Method
- type Module
- type Package
- type Person
- type Recv
- type RefId
- type Stereotype
- type Struct
- type Test2
- type TypeDesc
- type TypeOrigin
- type Variable
- type Vector
Examples ¶
Constants ¶
View Source
const ( StereotypeConstructor = "constructor" // the constructor of a struct StereotypeMethod = "method" StereotypeSingleton = "singleton" StereotypeEnum = "enum" StereotypeEnumElement = "enumElement" StereotypeDestructor = "destructor" // the destructor of a struct StereotypeExecutable = "executable" StereotypeStruct = "struct" StereotypeClass = "class" StereotypeProperty = "property" StereotypeParameter = "parameter" StereotypeParameterIn = "in" StereotypeParameterOut = "out" StereotypeParameterResult = "result" StereotypeGeneric = "generic" )
Doc for a const block
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AddressBookPerson ¶
type AddressBookPerson Person
type AddressBookPerson2 ¶
type AddressBookPerson2 struct {
Firstname, Last string
}
type BetterPerson ¶
type BetterPerson = Person
type ConstantBlock ¶
func NewConstantBlock ¶
func NewConstantBlock(consts []Constant, doc string) ConstantBlock
type Field ¶
type ImportPath ¶
type ImportPath = string
type Module ¶
type Module struct { Readme string Name string Packages map[ImportPath]*Package }
A Module contains various Package Pointers. There is also
- a readme and
- a name
A caption ¶
Is defined as in markdown. And we have also indented stuff like so:
Module.Packages can be accessed directly. and is formatted like pre.
type RefId ¶
type RefId struct { ImportPath ImportPath Identifier string }
func (RefId) PackageName ¶
type Stereotype ¶
type Stereotype string
Stereotype as usually interpreted in found context but not expressed in language explicitly.
type TypeDesc ¶
type TypeDesc struct { TypeDefinition RefId SrcTypeDefinition string Pointer bool Linebreak bool MapType *MapType TypeOrigin TypeOrigin }
func NewTypeDesc ¶
func (TypeDesc) Identifier ¶
func (TypeDesc) IncludesPkg ¶
func (TypeDesc) MapSrcDefs ¶
type TypeOrigin ¶
type TypeOrigin int
const ( BuiltIn TypeOrigin = iota LocalCustom ExternalCustom ExternalNonCustom )
Click to show internal directories.
Click to hide internal directories.