1
gimp 2022 年 7 月 5 日 可以的
|
2
keepeye 2022 年 7 月 5 日 这还用问吗?当然可以
|
3
idblife OP 是方便啊,类似 spring boot 的 java -jar app.jar
看来真有必要玩一玩了 |
4
GogoGo666 2022 年 7 月 5 日 非常可以,而且可以编译成任意平台的可执行程序
|
5
bigbigpark 2022 年 7 月 5 日 可以啊,这是 Go 语言的特色
|
6
lllllliiii 2022 年 7 月 5 日 个人感觉跟`java -jar`还是有区别的, 它这个不需要安装什么 go 运行环境。
|
8
lllllliiii 2022 年 7 月 5 日
@idblife
#7 我也在尝试写 go 玩玩,哈哈 |
9
wdwwtzy 2022 年 7 月 5 日
|
10
dzdh 2022 年 7 月 5 日
// go:embed *.html *.css *.js
var FS embed.FS http.handle( http.Filesystem(xxx.FS)) |
11
dzdh 2022 年 7 月 5 日
|
12
qfdk PRO 可以的. 静态资源用 embed
|
14
wdwwtzy 2022 年 7 月 5 日 @idblife
必须的么 Examples Publish an app self-contained. A macOS 64-bit executable is created. dotnet publish -r osx-x64 Publish an app self-contained. A Windows 64-bit executable is created. dotnet publish -r win-x64 https://docs.microsoft.com/en-us/dotnet/core/deploying/#examples-1 |
15
zhengjianyang 2022 年 7 月 5 日
这不是基本需求吗
|