v0.0.134
- fix bug in
cerror.convert
- fix bug in
GetBody()
inweb.server.context
- remove the codegen code's force min IOTimeout in
mysql
mongo
redis
- optimize the codegen's html code
- add email client config in codegen code's
SourceConfig
- add below codes in the codegen code's
main.go
to switch the current work dir to the execute file's dir
p, e := os.Executable()
if e != nil {
slog.Error("[main] get the executable file path failed", slog.String("error", e.Error()))
return
}
if !strings.Contains(p, "go-build") && !strings.Contains(p, os.Getenv("GOCACHE")) {
//not start from go run
p = filepath.Dir(p)
if e = os.Chdir(p); e != nil {
slog.Error("[main] change the current work dir to the executable file path failed", slog.String("error", e.Error()))
return
}
}
web.server
's static src root path now can't be the parent path of the execute filebreak change
incrpc
add data encoder to support accept and send JSON or PROTOBUF data!!!!!!!!