Skip to content
This repository has been archived by the owner on Oct 3, 2019. It is now read-only.

gohcl decoder and entity indexes #34

Closed
sigil66 opened this issue Jun 11, 2018 · 1 comment
Closed

gohcl decoder and entity indexes #34

sigil66 opened this issue Jun 11, 2018 · 1 comment

Comments

@sigil66
Copy link

sigil66 commented Jun 11, 2018

The gohcl package is nearly perfect for my requirements. I have found however the need to know the index of a given entity with a document following decode, due to the items being decoded into arrays of different types.

Example:

Task "snarf" {
  TypeOne {
     prop = "whatevs"
  }
  TypeTwo {
    another_prop = "something"
  }
}

If for example the high level decoder could dump the start from Range into a named field that would be ideal. Otherwise I will need to move to the next highest level decoder.

I am reticent to decode the sub entities on the fly.

What are your thoughts regarding discovering entity ordering utilizing the high level decoder?

@sigil66
Copy link
Author

sigil66 commented Jun 23, 2018

Opted for indexing the document after evaluation.

@sigil66 sigil66 closed this as completed Jun 23, 2018
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