2 Commits

Author SHA1 Message Date
hitzhangjie
cc66ceb484 refactor-*: improve code readability
- use clearer method names, comments;
- define dtm usage info;
- determine action by switch-case instead of if-else, because only
  os.Args[1] needs to be checked;
- use time layout '2006-01-02 15:04:05.999' to format milliseconds;
- change filenames dtmsvr/main.go to dtmsvr/dtmsvr.go;
- simplify code;
- use `()` to think less about operator precedence;

xxx
2021-09-23 23:05:42 +08:00
yedf2
8cbab29d41 xa add duplicate example and refactored 2021-09-03 19:43:09 +08:00