Our great sponsors
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
Can't say anything about 5 and 6 cause I don't have experience using this feature but I imagine there're reasons for that. If you're interested you can read https://github.com/golang/go/issues/41191 , the proposal and discussion around it. There's been extensive discussion around this feature before the design was finalized.
There's a nice wrapper for embed that makes some things a little easier: https://github.com/leaanthony/debme
I took the liberty of coding this up as a full example. I think it should be pretty obvious that what you want just works, if you are willing to use the tools you are given.