Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Go embed 简明教程 #188

Open
smallnest opened this issue Jan 24, 2021 · 4 comments
Open

Go embed 简明教程 #188

smallnest opened this issue Jan 24, 2021 · 4 comments

Comments

@smallnest
Copy link
Owner

https://colobu.com/2021/01/17/go-embed-tutorial/

@RitterHou
Copy link

哇!真棒👍!go真是越来越好用了!

@yqchilde
Copy link

充满活力的Go!

@MrWrong77
Copy link

经过测试, 很多地方貌似不同了, //go:embed ..\config.toml 这种写法才是对的

Copy link

"前面的例子都是package一级的的变量,即使是函数内的局部变量,也都支持嵌入"
—————————————————
这块应该是不支持的,我go1.17测试报错:
go:embed cannot apply to var inside func

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants