Documentation ¶
Index ¶
- Constants
- func FormatClass(class domain.Class) string
- func FormatClasses(classes domain.Classes) string
- func FormatField(field domain.Field) string
- func FormatFields(fields domain.Fields) string
- func FormatFunction(function domain.Function) string
- func FormatFunctions(functions domain.Functions) string
- func FormatImplementationRelation(class domain.Class, domainInterface domain.Interface) string
- func FormatImplementationRelations(classes domain.Classes, domainInterfaces domain.Interfaces) string
- func FormatInterface(domainInterface domain.Interface) string
- func FormatInterfaces(interfaces domain.Interfaces) string
- func FormatPackage(domainPackage domain.Package) string
- func FormatPackageAnnotations(domainPackage domain.Package) string
- func FormatPackages(domainPackages domain.Packages) string
- func FormatParameter(parameter domain.Field) string
- func FormatParameters(parameters domain.Fields) string
- func FormatPlantUML(packages domain.Packages, formatterOptions FormatterOptions) string
- func FormatPlantUMLWrapper(content ...string) string
- func FormatRelation(class domain.Class, class2 domain.Class) string
- func FormatRelations(classes domain.Classes) string
- func FormatReturnField(returnField domain.Field) string
- func FormatReturnFields(returnFields domain.Fields) string
- type FormatterOptions
Constants ¶
View Source
const PlantUMLAnnotationFormat = `annotation %s {
%s
%s
}`
View Source
const PlantUMLClassFormat = `class %s {
%s
%s
}`
View Source
const PlantUMLInterfaceFormat = `interface %s{
%s
}`
View Source
const PlantUMLLeftToRightDirection = "left to right direction"
View Source
const PlantUMLPackageFormat = `package %s{
%s
}`
View Source
const PlantUMLTopToBottomDirection = "top to bottom direction"
View Source
const PlantUMLWrapper = `@startuml
%s
@enduml`
Variables ¶
This section is empty.
Functions ¶
func FormatClass ¶
func FormatClasses ¶
func FormatField ¶
func FormatFields ¶
func FormatFunction ¶
func FormatFunctions ¶
func FormatImplementationRelation ¶ added in v1.1.7
func FormatImplementationRelations ¶ added in v1.1.7
func FormatImplementationRelations(classes domain.Classes, domainInterfaces domain.Interfaces) string
func FormatInterface ¶ added in v1.1.7
func FormatInterfaces ¶ added in v1.1.7
func FormatInterfaces(interfaces domain.Interfaces) string
func FormatPackage ¶ added in v1.1.7
func FormatPackageAnnotations ¶ added in v1.1.7
func FormatPackages ¶ added in v1.1.7
func FormatParameter ¶
func FormatParameters ¶
func FormatPlantUML ¶
func FormatPlantUML(packages domain.Packages, formatterOptions FormatterOptions) string
func FormatPlantUMLWrapper ¶
func FormatRelations ¶
func FormatReturnField ¶
func FormatReturnFields ¶
Types ¶
type FormatterOptions ¶ added in v1.3.4
type FormatterOptions struct {
LeftToRight bool
}
Click to show internal directories.
Click to hide internal directories.