You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If template has own import section (e.g. with github.com/prometheus/client_golang/prometheus) then the generated file header looks correct :
package name
// DO NOT EDIT!
// This code is generated with http://github.com/hexdigest/gowrap tool
// using templates/metrics template
import (
"context"
"github.com/prometheus/client_golang/prometheus"
)
But if template doesn't have own import section then package comment goes after import in generated file. It looks bad:
package name
import (
"context"
)
// DO NOT EDIT!
// This code is generated with http://github.com/hexdigest/gowrap tool
// using templates/metrics template
import() in the beginning of template fixes it but looks weird.