![]() |
1
gimp 2022-07-05 13:44:48 +08:00 ![]() 可以的
|
![]() |
2
keepeye 2022-07-05 13:46:14 +08:00 ![]() 这还用问吗?当然可以
|
![]() |
3
idblife OP 是方便啊,类似 spring boot 的 java -jar app.jar
看来真有必要玩一玩了 |
![]() |
4
GogoGo666 2022-07-05 13:55:42 +08:00 ![]() 非常可以,而且可以编译成任意平台的可执行程序
|
5
bigbigpark 2022-07-05 13:59:00 +08:00 ![]() 可以啊,这是 Go 语言的特色
|
6
fzdwx 2022-07-05 14:01:32 +08:00 ![]() 个人感觉跟`java -jar`还是有区别的, 它这个不需要安装什么 go 运行环境。
|
9
wdwwtzy 2022-07-05 15:05:59 +08:00
|
![]() |
10
dzdh 2022-07-05 15:19:03 +08:00
// go:embed *.html *.css *.js
var FS embed.FS http.handle( http.Filesystem(xxx.FS)) |
![]() |
11
dzdh 2022-07-05 15:19:31 +08:00
|
![]() |
12
qfdk 2022-07-05 15:36:32 +08:00 via iPhone
可以的. 静态资源用 embed
|
14
wdwwtzy 2022-07-05 15:49:40 +08:00 ![]() @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-07-05 22:56:28 +08:00
这不是基本需求吗
|