Commit eac08d5ef2
Unsigned
Layout: unified · split
internal/curd.go +16
| @@ -9,6 +9,22 @@ import ( | |||
| 9 | // "log" | 9 | // "log" |
| 10 | ) | 10 | ) |
| 11 | 11 | ||
| 12 | type curdConfig struct { | ||
| 13 | player string | ||
| 14 | historyFile string | ||
| 15 | subs_language string | ||
| 16 | sub_or_dub string | ||
| 17 | percentageToMarkComplete int | ||
| 18 | nextEpisodePrompt bool | ||
| 19 | skipOp bool | ||
| 20 | skipEd bool | ||
| 21 | skipFiller bool | ||
| 22 | skipRecap bool | ||
| 23 | scoreOnCompletion bool | ||
| 24 | saveMpvSpeed bool | ||
| 25 | discordPresence bool | ||
| 26 | } | ||
| 27 | |||
| 12 | // LogData logs the input data into a specified log file with the format [LOG] time lineNumber: logData | 28 | // LogData logs the input data into a specified log file with the format [LOG] time lineNumber: logData |
| 13 | func Log(data interface{}, logFile string) error { | 29 | func Log(data interface{}, logFile string) error { |
| 14 | // Open or create the log file | 30 | // Open or create the log file |