Simple Go command to encode PlantUML source for the server.
$ go get github.com/orlade/plantuml-encode
$ cat file.puml | plantuml-encode
Docker:
$ cat file.puml | docker run -i --rm orlade/plantuml-encode
Import the library:
import "github.com/orlade/plantuml-encode/plantuml"
Call DeflateAndEncode
with some PlantUML source:
plantuml.DeflateAndEncode([]byte("@startuml ... @enduml"))