From 527c0c4bfc7821d7cdaf704bd4b91b70c77b7ac1 Mon Sep 17 00:00:00 2001 From: Ishai Strauss Date: Wed, 17 Apr 2024 15:53:59 +0300 Subject: [PATCH] Added InterfaceFile --- pkg/outputter.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/outputter.go b/pkg/outputter.go index 1960be9b..d35653bc 100644 --- a/pkg/outputter.go +++ b/pkg/outputter.go @@ -210,6 +210,7 @@ func parseConfigTemplates(ctx context.Context, c *config.Config, iface *Interfac data := struct { InterfaceDir string InterfaceDirRelative string + InterfaceFile string InterfaceName string InterfaceNameCamel string InterfaceNameLowerCamel string @@ -222,6 +223,7 @@ func parseConfigTemplates(ctx context.Context, c *config.Config, iface *Interfac }{ InterfaceDir: filepath.Dir(iface.FileName), InterfaceDirRelative: interfaceDirRelative, + InterfaceFile: iface.FileName, InterfaceName: iface.Name, // Deprecated: All custom case variables of InterfaceName will be removed in the next major version // Use the template functions instead