func (c *serviceInternal) clearRecStack() {
	c.recStack = false
}
A helper for defer
package config
import (
	"fmt"
	"os"
	"path/filepath"
	"strconv"
	"strings"
	version "github.com/hashicorp/go-version"
	"github.com/kube-compose/kube-compose/internal/pkg/fs"
	"github.com/kube-compose/kube-compose/internal/pkg/util"
	"github.com/pkg/errors"
	"github.com/uber-go/mapdecode"
	yaml "gopkg.in/yaml.v2"
)
var (
	v1   = version.Must(version.NewVersion("1"))
	v2_1 = version.Must(version.NewVersion("2.1"))
	v3_1 = version.Must(version.NewVersion("3.1"))
	v3_3 = version.Must(version.NewVersion("3.3"))
)
type genericMap map[interface{}]interface{}
type XProperties map[string]interface{}
type CanonicalDockerComposeConfig struct {
	Services map[string]*Service
	XProperties []XProperties
}
type Service struct {
	Command []string
	DependsOn           map[string]ServiceHealthiness
	Entrypoint          []string
	Environment         map[string]string
	Healthcheck         *Healthcheck
	HealthcheckDisabled bool
	Image               string
	Name                string
	Ports               []PortBinding
	Privileged          bool
	Restart             string
	User                *string
	Volumes             []ServiceVolume
	WorkingDir          string
}
type serviceInternal struct {
	Command   *stringOrStringSlice `mapdecode:"command"`
	DependsOn *dependsOn           `mapdecode:"depends_on"`
	Entrypoint        *stringOrStringSlice `mapdecode:"entrypoint"`
	Environment       *environment         `mapdecode:"environment"`
	environmentParsed map[string]string
	Extends           *extends `mapdecode:"extends"`
	finalService *Service
	Healthcheck  *healthcheckInternal `mapdecode:"healthcheck"`
	Image        *string              `mapdecode:"image"`
	name        string
	Ports       []port `mapdecode:"ports"`
	portsParsed []PortBinding
	Privileged  *bool `mapdecode:"privileged"`
	recStack bool
	Restart  *string `mapdecode:"restart"`
	User     *string `mapdecode:"user"`
	visited    bool
	Volumes    []ServiceVolume `mapdecode:"volumes"`
	WorkingDir *string         `mapdecode:"working_dir"`
}