mapstructure icon indicating copy to clipboard operation
mapstructure copied to clipboard

Unable to unmarshal custom type hcl data

Open RATANAJANGIR opened this issue 2 years ago • 0 comments

Struct format

type (
	Specification struct {
		Environment
		Templates
	}

	Environment struct {
		Build   image.Image
		Runtime image.Image
	}

	Templates struct {
		ArtifactPathTemplate          string                      `mapstructure:"artifact-path"`
		StartCommandTemplate          *executable.TemplateCommand `mapstructure:"start-command"`
		ComponentInstallationTemplate *executable.TemplateCommand `mapstructure:"component-install"`
		ExecutableBinary              string                      `mapstructure:"executable-binary"`
	}
)

getting error error decoding 'Specification': unsupported entry[type= []map[string]interface {}, value= ] Anyone can help how to decode these value

RATANAJANGIR avatar Dec 21 '22 10:12 RATANAJANGIR