Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Unable to unmarshal custom type hcl data #317

Open
RATANAJANGIR opened this issue Dec 21, 2022 · 0 comments
Open

Unable to unmarshal custom type hcl data #317

RATANAJANGIR opened this issue Dec 21, 2022 · 0 comments

Comments

@RATANAJANGIR
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant