@@ -80,10 +80,12 @@ func Exit() {
80
80
os .Exit (0 )
81
81
}
82
82
83
- const AuthInfo = `
84
- <!--+----------------------------------------------------------------------+-->
85
- <!--|@author Openset <openset.wang@gmail.com> |-->
86
- <!--|@link https://github.com/openset |-->
87
- <!--|@home https://github.com/openset/leetcode |-->
88
- <!--+----------------------------------------------------------------------+-->
89
- `
83
+ func AuthInfo (cmd string ) string {
84
+ format := "<!--|This file generated by command(leetcode %s); DO NOT EDIT.%s|-->\n "
85
+ format += "<!--+----------------------------------------------------------------------+-->\n "
86
+ format += "<!--|@author Openset <openset.wang@gmail.com> |-->\n "
87
+ format += "<!--|@link https://github.com/openset |-->\n "
88
+ format += "<!--|@home https://github.com/openset/leetcode |-->\n "
89
+ format += "<!--+----------------------------------------------------------------------+-->\n "
90
+ return fmt .Sprintf (format , cmd , strings .Repeat (" " , 15 - len (cmd )))
91
+ }
0 commit comments