Skip to content

Sum types in config file #1568

Closed Answered by nxy7
nxy7 asked this question in Q&A
Discussion options

You must be logged in to vote

I think I'll just make 2 Config structs: "Config" and "RawConfig". RawConfig will read data as 'any' type and construct type Cmd interface{} used in real config. Pain, but it'll do.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by nxy7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant