Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant