krisnova / naml

Convert Kubernetes YAML to Golang
Apache License 2.0
1.26k stars 38 forks source link

Remove alias function #61

Open fkautz opened 2 years ago

fkautz commented 2 years ago

Now that we generate package imports automagically, the alias function is likely not necessary anymore. Would possibly be good to remove it.

krisnova commented 2 years ago

Right now we calculate the package alias types by hard coding a list of "known" types within each each package

I believe we can build these types in at compile time somehow (I am assuming similarly to how we use _embed.sh.

The other option would be to look up the package types at runtime.

Either way - we should be able to make the alias concern "full proof" so that we are not responsible for maintaining a hard-coded list of these.