??? ?? ??? golang ?????? ??? ?? ?? ?? ?????? INFINI Framework? ????? ??????.
github ???? https://github.com/infinilabs/framework???.
? ???? INFINI Framework? ???? ??? ????????.
? ?????? ??
?? ?? NewAPP? ? ????? ??? ?????.
???? ?? ??
new_app??? ??? ???? ID? ???? ??? ?? ???? ??? ?????.
cd ~/go/src/infini.sh/ mkdir new_app
??: new_app? ????? ??? ??? ????? ??? ?????. Makefile? ???? ????? ? ??? ?????.
?? ?? ??
? main.go ??? ??? ??? ?? ??? ??????.
package main import ( "infini.sh/framework" "infini.sh/framework/core/module" "infini.sh/framework/core/util" "infini.sh/framework/modules/api" "infini.sh/new_app/config" ) func main() { terminalHeader := (" __ _ ___ ___ \n") terminalHeader += (" /\ \ \_____ __/_\ / _ \/ _ \\n") terminalHeader += (" / \/ / _ \ \ /\ / //_\\ / /_)/ /_)/\n") terminalHeader += ("/ /\ / __/\ V V / _ \/ ___/ ___/ \n") terminalHeader += ("\_\ \/ \___| \_/\_/\_/ \_/\/ \/ \n\n") terminalFooter := ("Goodbye~") app := framework.NewApp("new_app", "Make a golang application is such easy~.", util.TrimSpaces(config.Version), util.TrimSpaces(config.BuildNumber), util.TrimSpaces(config.LastCommitLog), util.TrimSpaces(config.BuildDate), util.TrimSpaces(config.EOLDate), terminalHeader, terminalFooter) app.IgnoreMainConfigMissing() app.Init(nil) defer app.Shutdown() if app.Setup(func() { module.RegisterSystemModule(&api.APIModule{}) module.Start() }, func() { }, nil) { app.Run() } }
??? ? ??? ??? ???? ???? ASCII ?? ??? ??? ?????.
?? ?? ???
touch new_app.yml
????? ???
? Makefile? ??? ??? ?? ??? ??????.
SHELL=/bin/bash # APP info APP_NAME := new_app APP_VERSION := 1.0.0_SNAPSHOT APP_CONFIG := $(APP_NAME).yml APP_EOLDate ?= "2025-12-31T10:10:10Z" APP_STATIC_FOLDER := .public APP_STATIC_PACKAGE := public APP_UI_FOLDER := ui APP_PLUGIN_FOLDER := plugins PREFER_MANAGED_VENDOR=fase include ../framework/Makefile
?????? ??
? new_app OFFLINE_BUILD=true make build building new_app 1.0.0_SNAPSHOT main /Users/medcl/go/src/infini.sh/new_app framework path: /Users/medcl/go/src/infini.sh/framework fatal: not a git repository (or any of the parent directories): .git update generated info update configs (cd ../framework/ && make update-plugins) || true # build plugins in framework GOPATH=~/go:~/go/src/infini.sh/framework/../vendor/ CGO_ENABLED=0 GRPC_GO_REQUIRE_HANDSHAKE=off GO15VENDOREXPERIMENT="1" GO111MODULE=off go build -a -gcflags=all="-l -B" -ldflags '-static' -ldflags='-s -w' -gcflags "-m" --work -o /Users/medcl/go/src/infini.sh/new_app/bin/new_app WORK=/var/folders/j5/qd4qt3n55dz053d93q2mswfr0000gn/T/go-build435280758 # infini.sh/new_app ./main.go:17:9: can inline main.deferwrap1 ./main.go:21:12: can inline main.func2 ./main.go:18:22: func literal does not escape ./main.go:19:45: &api.APIModule{} escapes to heap ./main.go:21:12: func literal escapes to heap restore generated info
?????? ??
? new_app git:(main) ? ./bin/new_app __ _ ___ ___ /\ \ \_____ __/_\ / _ \/ _ \ / \/ / _ \ \ /\ / //_\ / /_)/ /_)/ / /\ / __/\ V V / _ \/ ___/ ___/ \_\ \/ \___| \_/\_/\_/ \_/\/ \/ [NEW_APP] Make a golang application is such easy~. [NEW_APP] 1.0.0_SNAPSHOT#001, 2024-12-16 06:15:10, 2025-12-31 10:10:10, HEAD [12-16 14:15:19] [INF] [env.go:203] configuration auto reload enabled [12-16 14:15:19] [INF] [env.go:209] watching config: /Users/medcl/go/src/infini.sh/new_app/config [12-16 14:15:19] [INF] [app.go:311] initializing new_app, pid: 64426 [12-16 14:15:19] [INF] [app.go:312] using config: /Users/medcl/go/src/infini.sh/new_app/new_app.yml [12-16 14:15:19] [INF] [api.go:214] local ips: 192.168.3.17 [12-16 14:15:19] [INF] [api.go:312] api server listen at: http://0.0.0.0:2900 [12-16 14:15:19] [INF] [module.go:159] started module: api [12-16 14:15:19] [INF] [module.go:184] all modules are started [12-16 14:15:19] [INF] [instance.go:101] workspace: /Users/medcl/go/src/infini.sh/new_app/data/new_app/nodes/ctfs8hbq50kevmkb3m6g [12-16 14:15:19] [INF] [app.go:537] new_app is up and running now. ^C [NEW_APP] got signal: interrupt, start shutting down [12-16 14:15:23] [INF] [module.go:213] all modules are stopped [12-16 14:15:23] [INF] [app.go:410] new_app now terminated. [NEW_APP] 1.0.0_SNAPSHOT, uptime: 4.13334s Goodbye~
??
?? ??? ???? ???? ? ????.
INFINI ?????? ???? Go ??????? ?? ? ???? ????? ?? ? ????.
?????? ??? ??? ??? ???? ?? ????? ????? ??????? ?? ??? ???? ? ??? ? ??? ????.
???: https://github.com/infinilabs
? ??? INFINI ????? ???? - ?????? golang ?????? ??? ?? ?? ?? ?????? ?? ?????. ??? ??? PHP ??? ????? ?? ?? ??? ?????!

? AI ??

Undress AI Tool
??? ???? ??

Undresser.AI Undress
???? ?? ??? ??? ?? AI ?? ?

AI Clothes Remover
???? ?? ???? ??? AI ?????.

Clothoff.io
AI ? ???

Video Face Swap
??? ??? AI ?? ?? ??? ???? ?? ???? ??? ?? ????!

?? ??

??? ??

???++7.3.1
???? ?? ?? ?? ???

SublimeText3 ??? ??
??? ??, ???? ?? ????.

???? 13.0.1 ???
??? PHP ?? ?? ??

???? CS6
??? ? ?? ??

SublimeText3 Mac ??
? ??? ?? ?? ?????(SublimeText3)

??? ??











GO?? JSON? ????? ????? ??? ???, ?? ?? ? ?? ?????? ???????. JSON? ?? JSON ? ??? ??? ???? ?? ?? ??? ?????? : "??"; ??? JSON ???? ??? ? ? ??? ??????. ?? ??? ?? ? ? ??? ?? ?? ??? ???? ?? ? ???? ?? ?? ??????. ? ??? JSON? ?? ?? ? ? MAP [String] interface {}? ???? ??? ?? ???? ???? ?? ? ? ????. ?? ??? float64? ?? ?????. JSON.MARSHALINDENT? ??? ? ??? ?????? ? ??? ? ??? ?? ??? ???? ??? ??????. ??? ??? ????? ??? ???? ??? ?? ? ? ????.

GO ????? ??? CGO? ?? C ??? ?? ??? ? ???,?? ?? GO? C ??? ?? ?? ? ? ????. CGO? ??? ?? ?? ??? "C"? ?? ?? C ?? ??? ???? ???? ?? ?? ?? ?? ?? ??? C ??? ??????. ?? ?? C ?????? #CGOLDFLAGS? ?? ?? ???? ???? ??? ? ????. ??? CGO? ??? ???? ???? ? ?? ??? ????. 1. ??? ??? ???? ?????? GO ??? ??? ?? ? ? ????. 2. GO ??? C ??? ???? ?? ? ??? C.Int? ?? ??? ???? ???? ???????. 3. ? ???-?? C ?????? ?? ?? ?? ? ??? ??? ??? ??? ? ????. 4. C ??? ?????? ?? ?? ??? ??? ?? ??? ?? ?? ?? ??????. CGO? ??

?, goapplicationscanbecross-compiledfifferentoperateRateSystemsandarchitectures.todothis, FirstSetThegoosandgoArchenvironmentVariaBlestOrgetSandarchitection, suchAsgoos = linuxgoarch = amd64foralinuxbinaryorgoos = wind

Go? ??? ??? ????? ??? ??????. 1. ??? ??? ???? ?? ??? ??? ???? ????. 2. ?? ?? ?? ????? ?? ??? ?? ? ??? ??; 3. ?? ??? ??? ???? ???? ??? ? ??? ??? ? ?????. 4. ?? ?? ???? ??? ? ??? ??? ??? ????? ?? ?? ???. ? ???? C/C?? ???? ?? ???? ??? ??? ?? ?? ?? ? ??? ??????.

GO? ????? ????? ??? ????? ??????. ?? ??? ?? ?????. 1. ? ??? ?? : Linux ????? ?? ??? ?????? ??? ??? ? ????. 2. ?? ??? ??? ?? ???? ???? ?? ??? ????? ?? ??? ?? ?? ??? ?? ??? ? ? ????. 3. ?? ?? ???? ?? : ?? ????? ??? ??? ?? ??? ??? ???? ??????. 4. ??? ?? ??? : ??? ???? ????? ?? ?????? ? ???? ? ? ??? ??? ? ??? ?????. ??? ??? CLI ??, ???? ??? ? ?? ????? ????? ????? ????? ?? ??? ??? ???? ????? ???? ??? ?????.

goensuresmemorysafety? ?? MemolemanucameThrougatomaticgargarbagecollection, nopointerarithmetic, safeconcurrency, andruntimechecks.first, go'sgarbagecollectoricallyally reclaimsunusedmemory, ??, itdisallowspointe, itdisallowspointe ??

GO?? ?? ??? ???? MAKE ??? ?? ?? ?? ? ??????. ?? ??? ???? ??? ??? ???? ?? ? ???? ?? ? ?? ??? ???? ?? ? ???? ??? ??? ? ????. ?? ??, ch : = make (Chanint, 10)? ?? 10 ?? ?? ?? ??? ??? ?? ??? ????. ???? ?? ??? ??, ??? ???? ?? ???? ??? ???? ???? ?? ? ??? ??? ????? ?????. ??? ??? ?, ?? : 1. ?? ??? ??? ??? ?? ??? ??? ??? ?? ?????????. 2. ??? ??? ??? ??? ??? ???? ?? ???????. 3. ??? chanstruct {} ??? ?? ?? ? ? ????. ???? ?????? ??? ?, ??? ??? ?? ? ???? ?????.

GO? ??? ?????? ??????. C? ?? ??? ? ??? ??? ?? ??? ?? ??? ? ??? ???? ?? ?????. 1. ?? ? ???? ?? ???? Go? OS ???? ?? ? ????? ????? ??? ??, ??, ?? ??? ? ???? ?? ?????. OS.ReadFile? ???? ? ?? ??? ?? ??? ?????. ?? ???? ?? ?? ?? ??? ???? ? ?????. 2. ???? ?? ???? OS/EXEC ???? exec.command ??? ?? ??? ????, ??? ????, ?? ??? ????, ?? ? ?? ??? ?????? ?? ??, ??? ?? ? ?? ????? ??? ???? ????? ?? ? ? ????. 3. ???? ? ??? ???? Net ???? TCP/UDP ?????, DNS ?? ? ?? ??? ?????.
