Skip to content

v0.0.134

Compare
Choose a tag to compare
@chenjie199234 chenjie199234 released this 31 Mar 05:35
· 16 commits to main since this release
  1. fix bug in cerror.convert
  2. fix bug in GetBody() in web.server.context
  3. remove the codegen code's force min IOTimeout in mysql mongo redis
  4. optimize the codegen's html code
  5. add email client config in codegen code's SourceConfig
  6. 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
		}
	}
  1. web.server's static src root path now can't be the parent path of the execute file
  2. break change in crpc add data encoder to support accept and send JSON or PROTOBUF data!!!!!!!!