Skip to content

Add Golang support #66

@daniel-santos

Description

@daniel-santos

Hello. Go is a horrible language. But I somehow find myself needing to build a large and complex project in Go and I miss my UML tools.

I hacked up goplantuml (to fix bugs and such), but I still can't get any UML editors to import my model, even with plantuml -v -xmi:argo (classes aren't in their respective packages and the model gets screwed). I suppose that would be a separate issue, but I just want to ask about Go support. At the very minimum, having the Go primitives would be helpful.

These are the basic type "Kinds" and my hacked-up goplantuml works with Go's abstract syntax tree, which gives you the parsed syntax, but doesn't resolve any symbols. Amongst the Kinds, Bool through Complex128, (perhaps Array and Func?), Pointer, and UnsafePointer are the actual primitives and the rest are composite types. Slice and Map can probably be represented by a built-in template type.

Anyway, any pointers on at least setting up language support for Go to the extent of having the primitives? Thank you!

EDIT: Aww, it looks like ArgoUML lacks support for multiple return values -- is that correct?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions