formatter

package
v1.3.5 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

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 FormatClass(class domain.Class) string

func FormatClasses

func FormatClasses(classes domain.Classes) string

func FormatField

func FormatField(field domain.Field) string

func FormatFields

func FormatFields(fields domain.Fields) string

func FormatFunction

func FormatFunction(function domain.Function) string

func FormatFunctions

func FormatFunctions(functions domain.Functions) string

func FormatImplementationRelation added in v1.1.7

func FormatImplementationRelation(class domain.Class, domainInterface domain.Interface) string

func FormatImplementationRelations added in v1.1.7

func FormatImplementationRelations(classes domain.Classes, domainInterfaces domain.Interfaces) string

func FormatInterface added in v1.1.7

func FormatInterface(domainInterface domain.Interface) string

func FormatInterfaces added in v1.1.7

func FormatInterfaces(interfaces domain.Interfaces) string

func FormatPackage added in v1.1.7

func FormatPackage(domainPackage domain.Package) string

func FormatPackageAnnotations added in v1.1.7

func FormatPackageAnnotations(domainPackage domain.Package) string

func FormatPackages added in v1.1.7

func FormatPackages(domainPackages domain.Packages) string

func FormatParameter

func FormatParameter(parameter domain.Field) string

func FormatParameters

func FormatParameters(parameters domain.Fields) string

func FormatPlantUML

func FormatPlantUML(packages domain.Packages, formatterOptions FormatterOptions) string

func FormatPlantUMLWrapper

func FormatPlantUMLWrapper(content ...string) string

func FormatRelation

func FormatRelation(class domain.Class, class2 domain.Class) string

func FormatRelations

func FormatRelations(classes domain.Classes) string

func FormatReturnField

func FormatReturnField(returnField domain.Field) string

func FormatReturnFields

func FormatReturnFields(returnFields domain.Fields) string

Types

type FormatterOptions added in v1.3.4

type FormatterOptions struct {
	LeftToRight bool
}

Jump to

Keyboard shortcuts

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