Skip to content

Commit 9e185ca

Browse files
committed
replace some basic uses of fmt.Sprintf()
Really tiny gains here, and doesn't significantly impact readability: BenchmarkSprintf BenchmarkSprintf-10 11528700 91.59 ns/op 32 B/op 1 allocs/op BenchmarkConcat BenchmarkConcat-10 100000000 11.76 ns/op 0 B/op 0 allocs/op Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
1 parent 3fb325b commit 9e185ca

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plugin.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ func (r *Registration) Init(ic *InitContext) *Plugin {
130130

131131
// URI returns the full plugin URI
132132
func (r *Registration) URI() string {
133-
return fmt.Sprintf("%s.%s", r.Type, r.ID)
133+
return r.Type.String() + "." + r.ID
134134
}
135135

136136
var register = struct {

0 commit comments

Comments
 (0)