Simple string interpolation for golang. Interpolates anything in an easy way.
No need to pass the format parameters %d, %s, %t... anymore!
go get github.com/evandrojr/string-interpolation
package main
import (
"github.com/evandrojr/string-interpolation/esi"
)
func main() {
esi.Print("Print ", 10, " ", 7, " interpolates anything ", true, " ", 3.4e10)
esi.Print(" no line break")
esi.Println()
esi.Println("Println ", 10, " ", 7, " interpolates anything ", true, " ", 3.4e10)
f := esi.Sprint("Sprint ", 10, " ", 7, " interpolates anything ", true, " ", 3.4e10)
esi.Print(f)
}
Print 10 7 interpolates anything true 3.4e+10 no line break
Println 10 7 interpolates anything true 3.4e+10
Sprint 10 7 interpolates anything true 3.4e+10%