Skip to content

v2.6.13

Choose a tag to compare

@kuafuRace kuafuRace released this 15 Oct 06:42
· 19 commits to master since this release
English
  • Use sync.Once in SetLocale method of language.go to ensure language files are loaded only once, and use sync.Map for thread-safe caching #319
  • Add boundary checks for escape character handling in format2layout method of helper.go to prevent panic caused by out-of-bounds access
中文
  • language.goSetLocale 方法中使用 sync.Once 确保语言文件只加载一次,使用 sync.Map 进行线程安全的缓存
  • helper.goformat2layout 方法中为转义字符处理添加边界检查, 防止越界访问导致的 panic

Full Changelog: v2.6.12...v2.6.13