plantuml
PlantUML encoder&decoder in go
import
import (
"github.com/trislu/plantuml"
)
Encode()
example
const text = `@startuml
Eve -> Bob : hello
@enduml`
var encoded string = plantuml.Encode(text)
var url string = "http://www.plantuml.com/plantuml/img/" + encoded
resp, err := http.Get(url)
The retrieved diagram:

Decode()
example
const cipher = "SYWkIImgAStDuN8jIrNGjLDmoazIi5B8ICt9oUToICrBAStD0GG00F__"
plain, err := plantuml.Decode(cipher)
log.Println(plain)
/*
@startuml
Eve -> Bob : hello
@enduml
*/
test
go test -v