Skip to content

Simple Go command to encode PlantUML source for the server.

License

Notifications You must be signed in to change notification settings

orlade/plantuml-encode

Repository files navigation

plantuml-encode

Simple Go command to encode PlantUML source for the server.

Install

$ go get github.com/orlade/plantuml-encode

Usage

$ cat file.puml | plantuml-encode

Docker:

$ cat file.puml | docker run -i --rm orlade/plantuml-encode

Use as a Go library

Import the library:

import "github.com/orlade/plantuml-encode/plantuml"

Call DeflateAndEncode with some PlantUML source:

plantuml.DeflateAndEncode([]byte("@startuml ... @enduml"))