Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(sg): remove -fm suffix in Fn name
It seems common to pass arguments to Deps and SerialDeps as below: ```go type namespace sg.Namespace func (n namespace) Default(ctx context.Context) error { sg.Deps(ctx, n.FirstTarget, n.SecondTarget) return nil } ``` Currently this leads to logs in the dep targets to be prefixed with `[namespace:first-target-fm]` and `[namespace:second-target]`, because of how the compiler implements methods bound to specific receivers. If instead the dependencies were specified as: ```go sg.Deps(ctx, namespace.FirstTarget, namespace.SecondTarget) ``` the names would log prefixes would simply be `[namespace:first-target]` and `[namespace:second-target]`. This commit removes the `-fm` suffix. This is safe as no function name in go can include a hyphen.
- Loading branch information