air
air copied to clipboard
Does it support start multiple go files for microservices project?
Assuming the folder structure look like this
.
|--- api
| |--- main.go
|---svr
. |--- service1
|--- main.go
|--- service 2
|--- main.go
Yes
Could you please provide me example?
Oops, I misunderstood. Currently, It does not support running multiple binaries at the same time.
I'm also wondering if this is possible. For now, I've created multiple .air.toml files that reside within each microservice directory and then run ./air -c ./api/.air.toml
and ./air -c ./svr/service1/.air.toml
.
I don't know if there's any better way than this, but I'll leave this here for those looking for a workaround/solution.
|--- api
|--- main.go
|--- .air.toml
|---svr
|--- service1
|--- main.go
|--- .air.toml
|--- service 2