6 ms·
Which time golang read file, build time or run time ?
by okibry 2y ago
Which time golang read file, build time or run time ?
- catlifeonmars 2y agoBuild time
- nasretdinov 2y agoembed package allows to embed assets directly into the binary, so the files are read once during build time and then you can access them as e.g. a byte slice, a string, or a special FS object that acts like an in-memory file system
- estebarb 2y agoBuild time. It literally embeeds the file in the binary.
- deleted 2y ago[deleted]