diff --git a/client/langs.go b/client/langs.go index b09c69fd..b3a1a875 100644 --- a/client/langs.go +++ b/client/langs.go @@ -4,51 +4,56 @@ package client // ^[\s\S]*?value="(.+?)"[\s\S]*?>([\s\S]+?)<[\s\S]*?$ // "\1": "\2", var Langs = map[string]string{ - "43": "GNU GCC C11 5.1.0", - "52": "Clang++17 Diagnostics", - "42": "GNU G++11 5.1.0", - "50": "GNU G++14 6.4.0", - "54": "GNU G++17 7.3.0", - "2": "Microsoft Visual C++ 2010", - "59": "Microsoft Visual C++ 2017", - "9": "C# Mono 5.18", - "28": "D DMD32 v2.086.0", - "32": "Go 1.12.6", - "12": "Haskell GHC 8.6.3", - "60": "Java 11.0.5", - "36": "Java 1.8.0_162", - "48": "Kotlin 1.3.10", - "19": "OCaml 4.02.1", - "3": "Delphi 7", - "4": "Free Pascal 3.0.2", - "51": "PascalABC.NET 3.4.2", + "12": "Haskell GHC 8.10.1", "13": "Perl 5.20.1", - "6": "PHP 7.2.13", - "7": "Python 2.7.15", - "31": "Python 3.7.2", - "40": "PyPy 2.7 (7.2.0)", - "41": "PyPy 3.6 (7.2.0)", - "8": "Ruby 2.0.0p645", - "49": "Rust 1.35.0", - "20": "Scala 2.12.8", - "34": "JavaScript V8 4.8.0", - "55": "Node.js 9.4.0", "14": "ActiveTcl 8.5", "15": "Io-2008-01-07 (Win32)", "17": "Pike 7.8", "18": "Befunge", + "19": "OCaml 4.02.1", + "2": "Microsoft Visual C++ 2010", + "20": "Scala 2.12.8", "22": "OpenCobol 1.0", "25": "Factor", "26": "Secret_171", "27": "Roco", + "28": "D DMD32 v2.091.0", + "3": "Delphi 7", + "31": "Python 3.9.1", + "32": "Go 1.15.6", "33": "Ada GNAT 4", + "34": "JavaScript V8 4.8.0", + "36": "Java 1.8.0_241", "38": "Mysterious Language", "39": "FALSE", + "4": "Free Pascal 3.0.2", + "40": "PyPy 2.7 (7.3.0)", + "41": "PyPy 3.7 (7.3.0)", + "42": "GNU G++11 5.1.0", + "43": "GNU GCC C11 5.1.0", "44": "Picat 0.9", "45": "GNU C++11 5 ZIP", "46": "Java 8 ZIP", "47": "J", + "48": "Kotlin 1.4.0", + "49": "Rust 1.49.0", + "50": "GNU G++14 6.4.0", + "51": "PascalABC.NET 3.4.2", + "52": "Clang++17 Diagnostics", + "54": "GNU G++17 7.3.0", + "55": "Node.js 12.6.3", "56": "Microsoft Q#", + "57": "Text", + "59": "Microsoft Visual C++ 2017", + "6": "PHP 7.2.13", + "60": "Java 11.0.6", + "61": "GNU G++17 9.2.0 (64 bit, msys 2)", + "62": "UnknownX", + "65": "C# 8, .NET Core 3.1", + "67": "Ruby 3.0.0", + "68": "Secret 2021", + "7": "Python 2.7.18", + "9": "C# Mono 6.8", } // LangsExt language's ext diff --git a/config/config.go b/config/config.go index e2f4bef7..5d05aa4f 100644 --- a/config/config.go +++ b/config/config.go @@ -1,10 +1,10 @@ package config import ( + "bytes" "encoding/json" "io/ioutil" "os" - "bytes" "path/filepath" "github.com/fatih/color" diff --git a/vendor/github.com/shirou/gopsutil/net/net_windows.go b/vendor/github.com/shirou/gopsutil/net/net_windows.go index d40e4163..3b1cad90 100644 --- a/vendor/github.com/shirou/gopsutil/net/net_windows.go +++ b/vendor/github.com/shirou/gopsutil/net/net_windows.go @@ -299,7 +299,6 @@ func ConntrackStatsWithContext(ctx context.Context, percpu bool) ([]ConntrackSta return nil, common.ErrNotImplementedError } - // NetProtoCounters returns network statistics for the entire system // If protocols is empty then all protocols are returned, otherwise // just the protocols in the list are returned. diff --git a/vendor/github.com/shirou/w32/constants.go b/vendor/github.com/shirou/w32/constants.go index 62d2d4b3..b83ff14c 100644 --- a/vendor/github.com/shirou/w32/constants.go +++ b/vendor/github.com/shirou/w32/constants.go @@ -131,27 +131,27 @@ const ( BS_AUTOCHECKBOX = 3 BS_AUTORADIOBUTTON = 9 BS_BITMAP = 128 - BS_BOTTOM = 0X800 - BS_CENTER = 0X300 + BS_BOTTOM = 0x800 + BS_CENTER = 0x300 BS_CHECKBOX = 2 BS_DEFPUSHBUTTON = 1 BS_GROUPBOX = 7 BS_ICON = 64 BS_LEFT = 256 BS_LEFTTEXT = 32 - BS_MULTILINE = 0X2000 - BS_NOTIFY = 0X4000 - BS_OWNERDRAW = 0XB + BS_MULTILINE = 0x2000 + BS_NOTIFY = 0x4000 + BS_OWNERDRAW = 0xB BS_PUSHBUTTON = 0 BS_PUSHLIKE = 4096 BS_RADIOBUTTON = 4 BS_RIGHT = 512 BS_RIGHTBUTTON = 32 BS_TEXT = 0 - BS_TOP = 0X400 + BS_TOP = 0x400 BS_USERBUTTON = 8 - BS_VCENTER = 0XC00 - BS_FLAT = 0X8000 + BS_VCENTER = 0xC00 + BS_FLAT = 0x8000 ) // Button state constants @@ -246,61 +246,61 @@ const ( // Window style constants const ( - WS_OVERLAPPED = 0X00000000 - WS_POPUP = 0X80000000 - WS_CHILD = 0X40000000 - WS_MINIMIZE = 0X20000000 - WS_VISIBLE = 0X10000000 - WS_DISABLED = 0X08000000 - WS_CLIPSIBLINGS = 0X04000000 - WS_CLIPCHILDREN = 0X02000000 - WS_MAXIMIZE = 0X01000000 - WS_CAPTION = 0X00C00000 - WS_BORDER = 0X00800000 - WS_DLGFRAME = 0X00400000 - WS_VSCROLL = 0X00200000 - WS_HSCROLL = 0X00100000 - WS_SYSMENU = 0X00080000 - WS_THICKFRAME = 0X00040000 - WS_GROUP = 0X00020000 - WS_TABSTOP = 0X00010000 - WS_MINIMIZEBOX = 0X00020000 - WS_MAXIMIZEBOX = 0X00010000 - WS_TILED = 0X00000000 - WS_ICONIC = 0X20000000 - WS_SIZEBOX = 0X00040000 - WS_OVERLAPPEDWINDOW = 0X00000000 | 0X00C00000 | 0X00080000 | 0X00040000 | 0X00020000 | 0X00010000 - WS_POPUPWINDOW = 0X80000000 | 0X00800000 | 0X00080000 - WS_CHILDWINDOW = 0X40000000 + WS_OVERLAPPED = 0x00000000 + WS_POPUP = 0x80000000 + WS_CHILD = 0x40000000 + WS_MINIMIZE = 0x20000000 + WS_VISIBLE = 0x10000000 + WS_DISABLED = 0x08000000 + WS_CLIPSIBLINGS = 0x04000000 + WS_CLIPCHILDREN = 0x02000000 + WS_MAXIMIZE = 0x01000000 + WS_CAPTION = 0x00C00000 + WS_BORDER = 0x00800000 + WS_DLGFRAME = 0x00400000 + WS_VSCROLL = 0x00200000 + WS_HSCROLL = 0x00100000 + WS_SYSMENU = 0x00080000 + WS_THICKFRAME = 0x00040000 + WS_GROUP = 0x00020000 + WS_TABSTOP = 0x00010000 + WS_MINIMIZEBOX = 0x00020000 + WS_MAXIMIZEBOX = 0x00010000 + WS_TILED = 0x00000000 + WS_ICONIC = 0x20000000 + WS_SIZEBOX = 0x00040000 + WS_OVERLAPPEDWINDOW = 0x00000000 | 0x00C00000 | 0x00080000 | 0x00040000 | 0x00020000 | 0x00010000 + WS_POPUPWINDOW = 0x80000000 | 0x00800000 | 0x00080000 + WS_CHILDWINDOW = 0x40000000 ) // Extended window style constants const ( - WS_EX_DLGMODALFRAME = 0X00000001 - WS_EX_NOPARENTNOTIFY = 0X00000004 - WS_EX_TOPMOST = 0X00000008 - WS_EX_ACCEPTFILES = 0X00000010 - WS_EX_TRANSPARENT = 0X00000020 - WS_EX_MDICHILD = 0X00000040 - WS_EX_TOOLWINDOW = 0X00000080 - WS_EX_WINDOWEDGE = 0X00000100 - WS_EX_CLIENTEDGE = 0X00000200 - WS_EX_CONTEXTHELP = 0X00000400 - WS_EX_RIGHT = 0X00001000 - WS_EX_LEFT = 0X00000000 - WS_EX_RTLREADING = 0X00002000 - WS_EX_LTRREADING = 0X00000000 - WS_EX_LEFTSCROLLBAR = 0X00004000 - WS_EX_RIGHTSCROLLBAR = 0X00000000 - WS_EX_CONTROLPARENT = 0X00010000 - WS_EX_STATICEDGE = 0X00020000 - WS_EX_APPWINDOW = 0X00040000 - WS_EX_OVERLAPPEDWINDOW = 0X00000100 | 0X00000200 - WS_EX_PALETTEWINDOW = 0X00000100 | 0X00000080 | 0X00000008 - WS_EX_LAYERED = 0X00080000 - WS_EX_NOINHERITLAYOUT = 0X00100000 - WS_EX_LAYOUTRTL = 0X00400000 - WS_EX_NOACTIVATE = 0X08000000 + WS_EX_DLGMODALFRAME = 0x00000001 + WS_EX_NOPARENTNOTIFY = 0x00000004 + WS_EX_TOPMOST = 0x00000008 + WS_EX_ACCEPTFILES = 0x00000010 + WS_EX_TRANSPARENT = 0x00000020 + WS_EX_MDICHILD = 0x00000040 + WS_EX_TOOLWINDOW = 0x00000080 + WS_EX_WINDOWEDGE = 0x00000100 + WS_EX_CLIENTEDGE = 0x00000200 + WS_EX_CONTEXTHELP = 0x00000400 + WS_EX_RIGHT = 0x00001000 + WS_EX_LEFT = 0x00000000 + WS_EX_RTLREADING = 0x00002000 + WS_EX_LTRREADING = 0x00000000 + WS_EX_LEFTSCROLLBAR = 0x00004000 + WS_EX_RIGHTSCROLLBAR = 0x00000000 + WS_EX_CONTROLPARENT = 0x00010000 + WS_EX_STATICEDGE = 0x00020000 + WS_EX_APPWINDOW = 0x00040000 + WS_EX_OVERLAPPEDWINDOW = 0x00000100 | 0x00000200 + WS_EX_PALETTEWINDOW = 0x00000100 | 0x00000080 | 0x00000008 + WS_EX_LAYERED = 0x00080000 + WS_EX_NOINHERITLAYOUT = 0x00100000 + WS_EX_LAYOUTRTL = 0x00400000 + WS_EX_NOACTIVATE = 0x08000000 ) // Window message constants @@ -372,7 +372,7 @@ const ( WM_INITDIALOG = 272 WM_INITMENU = 278 WM_INITMENUPOPUP = 279 - WM_INPUT = 0X00FF + WM_INPUT = 0x00FF WM_INPUTLANGCHANGE = 81 WM_INPUTLANGCHANGEREQUEST = 80 WM_KEYDOWN = 256 @@ -391,16 +391,16 @@ const ( WM_MDISETMENU = 560 WM_MDITILE = 550 WM_MEASUREITEM = 44 - WM_GETOBJECT = 0X003D - WM_CHANGEUISTATE = 0X0127 - WM_UPDATEUISTATE = 0X0128 - WM_QUERYUISTATE = 0X0129 - WM_UNINITMENUPOPUP = 0X0125 + WM_GETOBJECT = 0x003D + WM_CHANGEUISTATE = 0x0127 + WM_UPDATEUISTATE = 0x0128 + WM_QUERYUISTATE = 0x0129 + WM_UNINITMENUPOPUP = 0x0125 WM_MENURBUTTONUP = 290 - WM_MENUCOMMAND = 0X0126 - WM_MENUGETOBJECT = 0X0124 - WM_MENUDRAG = 0X0123 - WM_APPCOMMAND = 0X0319 + WM_MENUCOMMAND = 0x0126 + WM_MENUGETOBJECT = 0x0124 + WM_MENUDRAG = 0x0123 + WM_APPCOMMAND = 0x0319 WM_MENUCHAR = 288 WM_MENUSELECT = 287 WM_MOVE = 3 @@ -419,8 +419,8 @@ const ( WM_NCXBUTTONDOWN = 171 WM_NCXBUTTONUP = 172 WM_NCXBUTTONDBLCLK = 173 - WM_NCMOUSEHOVER = 0X02A0 - WM_NCMOUSELEAVE = 0X02A2 + WM_NCMOUSEHOVER = 0x02A0 + WM_NCMOUSELEAVE = 0x02A2 WM_NCMOUSEMOVE = 160 WM_NCPAINT = 133 WM_NCRBUTTONDBLCLK = 166 @@ -506,8 +506,8 @@ const ( WM_XBUTTONUP = 524 WM_XBUTTONDBLCLK = 525 WM_MOUSELAST = 525 - WM_MOUSEHOVER = 0X2A1 - WM_MOUSELEAVE = 0X2A3 + WM_MOUSEHOVER = 0x2A1 + WM_MOUSELEAVE = 0x2A3 WM_CLIPBOARDUPDATE = 0x031D )