Original post

One thing that I really liked in C# was the way you could write:

int age = 80;
string s = $"I am {age} years old.";

Is there a package for Go that can do something similar? Does fmt support a similar syntax? I am of course aware of the syntax below, but it is a little bit longer and not as “pretty” in my opinion. Especially when you have multiple arguments:

s:=fmt.Sprintf("I am %d years old.", age)