摘要: embed包 提供了访问正在运行的go程序的功能。 嵌入一个文件到string import _ "embed" //go:embed hello.txt var s string print(s) 嵌入一个文件到一个字节切片 import _ "embed" //go:embed hello.tx 阅读全文
posted @ 2021-02-24 12:25 tulipgirl 阅读(238) 评论(0) 推荐(0) 编辑