2021-04-19 06:10:06 +00:00
|
|
|
-- https://phelipetls.github.io/posts/async-make-in-nvim-with-lua/
|
|
|
|
local M = {}
|
2021-12-11 03:44:15 +00:00
|
|
|
local util = require("go.utils")
|
|
|
|
local log = util.log
|
2022-07-07 16:34:50 +00:00
|
|
|
local trace = util.trace
|
2022-05-16 23:47:45 +00:00
|
|
|
local getopt = require("go.alt_getopt")
|
2022-01-17 06:33:00 +00:00
|
|
|
|
|
|
|
local function compile_efm()
|
|
|
|
local efm = [[%-G#\ %.%#]]
|
|
|
|
efm = efm .. [[,%-G%.%#panic:\ %m]]
|
|
|
|
efm = efm .. [[,%Ecan\'t\ load\ package:\ %m]]
|
|
|
|
efm = efm .. [[,%A%\\%%\(%[%^:]%\\+:\ %\\)%\\?%f:%l:%c:\ %m]]
|
|
|
|
efm = efm .. [[,%A%\\%%\(%[%^:]%\\+:\ %\\)%\\?%f:%l:\ %m]]
|
|
|
|
efm = efm .. [[,%C%*\\s%m]]
|
|
|
|
efm = efm .. [[,%-G%.%#]]
|
|
|
|
return efm
|
|
|
|
end
|
|
|
|
|
2022-02-23 10:01:19 +00:00
|
|
|
local namepath = {}
|
|
|
|
|
|
|
|
local function extract_filepath(msg)
|
|
|
|
msg = msg or ""
|
|
|
|
--[[ or [[ findAllSubStr_test.go:234: Error inserting caseResult1: operation error DynamoDB: PutItem, exceeded maximum number of attempts]]
|
|
|
|
|
|
|
|
local pos, _ = msg:find([[[%w_-]+_test%.go:%d+:]])
|
|
|
|
if pos == nil then
|
|
|
|
return
|
|
|
|
end
|
|
|
|
local pos2 = msg:find(":")
|
|
|
|
local s = msg:sub(pos, pos2 - 1)
|
|
|
|
if namepath[s] ~= nil then
|
|
|
|
return namepath[s]
|
|
|
|
end
|
|
|
|
if vim.fn.executable("find") == 0 then
|
|
|
|
return
|
|
|
|
end
|
|
|
|
local cmd = "find ./ -type f -name " .. s
|
|
|
|
local path = vim.fn.systemlist(cmd)
|
2022-06-28 04:36:30 +00:00
|
|
|
|
|
|
|
if vim.v.shell_error ~= 0 then
|
|
|
|
util.warn("find failed" .. vim.inspect(path))
|
|
|
|
return
|
|
|
|
end
|
2022-02-23 10:01:19 +00:00
|
|
|
for _, value in pairs(path) do
|
|
|
|
local st, _ = value:find(s)
|
2022-05-25 06:06:36 +00:00
|
|
|
log(value, st)
|
2022-02-23 10:01:19 +00:00
|
|
|
if st then
|
|
|
|
local p = value:sub(1, st - 1)
|
|
|
|
namepath[st] = p
|
|
|
|
return p
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2022-05-16 23:47:45 +00:00
|
|
|
local long_opts = {
|
|
|
|
verbose = "v",
|
|
|
|
compile = "c",
|
|
|
|
tags = "t",
|
2022-10-20 02:02:45 +00:00
|
|
|
args = "a",
|
2022-05-16 23:47:45 +00:00
|
|
|
bench = "b",
|
2022-05-24 07:23:53 +00:00
|
|
|
run = "r",
|
2022-05-16 23:47:45 +00:00
|
|
|
floaterm = "F",
|
|
|
|
}
|
|
|
|
|
2022-10-20 02:02:45 +00:00
|
|
|
local short_opts = "a:vct:bFr:"
|
2022-05-16 23:47:45 +00:00
|
|
|
local bench_opts = { "-benchmem", "-cpuprofile", "profile.out" }
|
|
|
|
|
2021-07-16 14:37:41 +00:00
|
|
|
function M.make(...)
|
2021-12-10 00:43:59 +00:00
|
|
|
local args = { ... }
|
|
|
|
local lines = {}
|
2021-12-15 08:02:22 +00:00
|
|
|
local errorlines = {}
|
2021-04-19 06:10:06 +00:00
|
|
|
local winnr = vim.fn.win_getid()
|
|
|
|
local bufnr = vim.api.nvim_win_get_buf(winnr)
|
|
|
|
local makeprg = vim.api.nvim_buf_get_option(bufnr, "makeprg")
|
2021-12-10 00:43:59 +00:00
|
|
|
|
2022-06-01 11:29:13 +00:00
|
|
|
local optarg, _, reminder = getopt.get_opts(args, short_opts, long_opts)
|
2022-05-16 23:47:45 +00:00
|
|
|
log(makeprg, args, optarg, reminder)
|
2022-06-01 11:29:13 +00:00
|
|
|
-- local indent = "%\\%( %\\)"
|
2021-07-16 14:37:41 +00:00
|
|
|
if not makeprg then
|
2021-12-15 08:02:22 +00:00
|
|
|
log("makeprog not setup")
|
2021-07-16 14:37:41 +00:00
|
|
|
return
|
|
|
|
end
|
2021-04-19 06:10:06 +00:00
|
|
|
|
2022-07-07 15:27:30 +00:00
|
|
|
local runner = vim.split(makeprg, " ")[1]
|
2022-06-30 16:44:39 +00:00
|
|
|
|
|
|
|
if not require("go.install").install(runner) then
|
|
|
|
util.warn("please wait for " .. runner .. " to be installed and re-run the command")
|
|
|
|
return
|
|
|
|
end
|
|
|
|
|
2021-12-15 08:02:22 +00:00
|
|
|
local efm = [[%-G#\ %.%#]]
|
2021-12-16 06:46:52 +00:00
|
|
|
if makeprg:find("go build") then
|
2021-12-10 00:43:59 +00:00
|
|
|
vim.cmd([[setl errorformat=%-G#\ %.%#]])
|
2021-12-15 08:02:22 +00:00
|
|
|
-- if makeprg:find("go build") then
|
2022-01-17 06:33:00 +00:00
|
|
|
efm = compile_efm()
|
2021-07-16 14:37:41 +00:00
|
|
|
end
|
2021-12-15 08:02:22 +00:00
|
|
|
-- end
|
2021-12-10 00:43:59 +00:00
|
|
|
|
2022-01-06 23:29:40 +00:00
|
|
|
local runner = "golangci-lint"
|
2021-12-10 00:43:59 +00:00
|
|
|
if makeprg:find("golangci%-lint") then
|
2021-04-19 06:10:06 +00:00
|
|
|
-- lint
|
2021-12-15 08:02:22 +00:00
|
|
|
efm = efm .. [[,%A%\\%%(%[%^:]%\\+:\ %\\)%\\?%f:%l:%c:\ %m]]
|
|
|
|
efm = efm .. [[,%A%\\%%(%[%^:]%\\+:\ %\\)%\\?%f:%l:\ %m]]
|
2021-12-11 03:44:15 +00:00
|
|
|
|
2021-12-16 07:15:21 +00:00
|
|
|
local pwd = util.work_path()
|
2021-12-15 08:02:22 +00:00
|
|
|
local cfg = pwd .. ".golangci.yml"
|
2021-12-11 03:44:15 +00:00
|
|
|
|
|
|
|
if util.file_exists(cfg) then
|
|
|
|
makeprg = makeprg .. [[\ -c\ ]] .. cfg
|
2021-12-16 06:46:52 +00:00
|
|
|
-- vim.api.nvim_buf_set_option(bufnr, "makeprg", makeprg)
|
2021-12-11 03:44:15 +00:00
|
|
|
end
|
2021-04-19 06:10:06 +00:00
|
|
|
end
|
2022-01-17 06:33:00 +00:00
|
|
|
local compile_test = false
|
2022-09-05 00:56:42 +00:00
|
|
|
|
2022-01-17 06:33:00 +00:00
|
|
|
if makeprg:find("test") then
|
2022-05-24 07:23:53 +00:00
|
|
|
if optarg["c"] then
|
2022-01-17 06:33:00 +00:00
|
|
|
log("compile test")
|
|
|
|
compile_test = true
|
2022-01-17 06:48:16 +00:00
|
|
|
efm = compile_efm()
|
2022-01-17 06:33:00 +00:00
|
|
|
end
|
|
|
|
end
|
2022-09-05 00:56:42 +00:00
|
|
|
|
2021-12-15 08:02:22 +00:00
|
|
|
if makeprg:find("go run") then
|
2022-01-06 23:29:40 +00:00
|
|
|
runner = "go run"
|
2022-06-30 22:26:14 +00:00
|
|
|
if args == nil or #args == 0 or (#args == 1 and args[1] == "-F") then
|
2021-12-15 08:02:22 +00:00
|
|
|
makeprg = makeprg .. " ."
|
|
|
|
end
|
|
|
|
efm = efm .. [[,%A%\\t%#%f:%l\ +0x%[0-9A-Fa-f]%\\+]]
|
2021-12-16 06:46:52 +00:00
|
|
|
|
|
|
|
log("go run", makeprg)
|
2021-12-15 08:02:22 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
if makeprg:find("go vet") then
|
2022-01-06 23:29:40 +00:00
|
|
|
runner = "go vet"
|
2021-12-15 08:02:22 +00:00
|
|
|
if args == nil or #args == 0 then
|
|
|
|
makeprg = makeprg .. " ."
|
|
|
|
end
|
2022-01-17 06:33:00 +00:00
|
|
|
|
|
|
|
efm = compile_efm()
|
2021-12-15 08:02:22 +00:00
|
|
|
efm = efm .. [[,%-Gexit\ status\ %\\d%\\+]]
|
2021-07-16 14:37:41 +00:00
|
|
|
end
|
2021-04-19 06:10:06 +00:00
|
|
|
|
2022-05-24 07:23:53 +00:00
|
|
|
local cmd = vim.fn.split(makeprg, " ")
|
2022-05-30 14:04:52 +00:00
|
|
|
if optarg["t"] then
|
2022-06-15 04:11:10 +00:00
|
|
|
local tag = optarg["t"]
|
2022-05-30 14:04:52 +00:00
|
|
|
local f = tag:find("=")
|
|
|
|
if not f then
|
|
|
|
table.insert(cmd, "-tags=" .. tag)
|
|
|
|
else
|
2022-06-15 04:11:10 +00:00
|
|
|
table.insert(cmd, "-tags=" .. tag:sub(f + 1))
|
2022-05-30 14:04:52 +00:00
|
|
|
end
|
|
|
|
end
|
2022-09-05 00:56:42 +00:00
|
|
|
|
|
|
|
local bench = false
|
2021-12-15 08:02:22 +00:00
|
|
|
if makeprg:find("test") then
|
|
|
|
log("go test")
|
2022-01-06 23:29:40 +00:00
|
|
|
|
|
|
|
runner = "go test"
|
2022-01-17 06:48:16 +00:00
|
|
|
efm = compile_efm()
|
2021-12-10 10:13:23 +00:00
|
|
|
|
2022-09-05 00:56:42 +00:00
|
|
|
for _, arg in ipairs(args) do
|
|
|
|
--check if it is bench test
|
|
|
|
if arg:find('-bench') then
|
|
|
|
bench = true
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2022-05-24 07:23:53 +00:00
|
|
|
if optarg["v"] then
|
|
|
|
table.insert(cmd, "-v")
|
|
|
|
end
|
|
|
|
if optarg["r"] then
|
2022-07-07 15:27:30 +00:00
|
|
|
log("run test", efm)
|
2022-05-24 07:23:53 +00:00
|
|
|
table.insert(cmd, "-run")
|
|
|
|
end
|
2022-09-05 00:56:42 +00:00
|
|
|
if not bench and compile_test then
|
2022-05-30 14:04:52 +00:00
|
|
|
table.insert(cmd, "-c")
|
|
|
|
end
|
2022-05-24 07:23:53 +00:00
|
|
|
end
|
2021-07-16 14:37:41 +00:00
|
|
|
|
2022-09-05 00:56:42 +00:00
|
|
|
if bench then
|
|
|
|
cmd = vim.list_extend(cmd, args)
|
|
|
|
elseif args and #args > 0 then
|
2022-05-16 23:47:45 +00:00
|
|
|
cmd = vim.list_extend(cmd, reminder)
|
2021-07-16 14:37:41 +00:00
|
|
|
end
|
2021-09-03 02:13:15 +00:00
|
|
|
|
2022-10-22 12:39:48 +00:00
|
|
|
if optarg["a"] then
|
|
|
|
table.insert(cmd, "-args")
|
|
|
|
table.insert(cmd, optarg["a"])
|
|
|
|
end
|
|
|
|
|
2022-01-11 02:50:11 +00:00
|
|
|
local function handle_color(line)
|
2022-05-24 07:23:53 +00:00
|
|
|
if _GO_NVIM_CFG.run_in_floaterm or optarg["F"] then
|
2022-01-11 02:50:11 +00:00
|
|
|
return line
|
|
|
|
end
|
|
|
|
if tonumber(vim.fn.match(line, "\\%x1b\\[[0-9;]\\+")) < 0 then
|
|
|
|
return line
|
|
|
|
end
|
|
|
|
if type(line) ~= "string" then
|
|
|
|
return line
|
|
|
|
end
|
|
|
|
line = vim.fn.substitute(line, "\\%x1b\\[[0-9;]\\+[mK]", "", "g")
|
2022-05-25 06:06:36 +00:00
|
|
|
log(line)
|
2022-01-11 02:50:11 +00:00
|
|
|
return line
|
|
|
|
end
|
|
|
|
|
2022-05-24 07:23:53 +00:00
|
|
|
if _GO_NVIM_CFG.run_in_floaterm or optarg["F"] then
|
2022-03-23 02:40:15 +00:00
|
|
|
local term = require("go.term").run
|
2022-05-30 16:41:48 +00:00
|
|
|
cmd = table.concat(cmd, " ")
|
2022-03-23 02:40:15 +00:00
|
|
|
term({ cmd = cmd, autoclose = false })
|
|
|
|
return
|
|
|
|
end
|
2022-02-23 05:28:21 +00:00
|
|
|
local failed = false
|
2022-02-23 10:01:19 +00:00
|
|
|
local itemn = 1
|
2022-07-07 15:27:30 +00:00
|
|
|
|
2022-07-07 22:30:46 +00:00
|
|
|
local package_path = (cmd[#cmd] or "")
|
|
|
|
if package_path ~= nil then
|
|
|
|
package_path = package_path .. util.sep()
|
|
|
|
else
|
|
|
|
package_path = ""
|
|
|
|
end
|
2022-11-29 02:53:33 +00:00
|
|
|
|
|
|
|
local cmdstr = vim.fn.join(cmd, " ") -- cmd list run without shell, cmd string run with shell
|
|
|
|
local Sprite = util.load_plugin('guihua.lua', 'guihua.sprite')
|
|
|
|
local sprite
|
|
|
|
if Sprite then
|
|
|
|
sprite = Sprite:new({
|
|
|
|
loc = 'top_center',
|
|
|
|
syntax = 'lua',
|
|
|
|
rect = { height = 1, width = 30},
|
|
|
|
data = { 'Running '.. cmdstr },
|
|
|
|
timeout = 5000,
|
|
|
|
hl_line = 1,
|
|
|
|
})
|
|
|
|
else
|
|
|
|
sprite = {on_close = function() end}
|
|
|
|
end
|
|
|
|
|
2021-04-19 06:10:06 +00:00
|
|
|
local function on_event(job_id, data, event)
|
2022-01-11 02:50:11 +00:00
|
|
|
-- log("stdout", data, event)
|
2021-12-15 08:02:22 +00:00
|
|
|
if event == "stdout" then
|
2021-04-19 06:10:06 +00:00
|
|
|
if data then
|
2021-12-15 08:02:22 +00:00
|
|
|
for _, value in ipairs(data) do
|
|
|
|
if value ~= "" then
|
2022-06-15 04:11:10 +00:00
|
|
|
if value:find("=== RUN") or value:find("no test file") then
|
|
|
|
goto continue
|
|
|
|
end
|
2022-07-07 15:27:30 +00:00
|
|
|
|
2022-01-11 02:50:11 +00:00
|
|
|
value = handle_color(value)
|
2022-02-23 10:01:19 +00:00
|
|
|
if value:find("FAIL") then
|
|
|
|
failed = true
|
2022-07-07 15:27:30 +00:00
|
|
|
if value == "FAIL" then
|
|
|
|
goto continue
|
|
|
|
end
|
2022-02-23 10:01:19 +00:00
|
|
|
end
|
|
|
|
local changed = false
|
|
|
|
if vim.fn.empty(vim.fn.glob(args[#args])) == 0 then
|
|
|
|
changed = true
|
2022-06-15 04:11:10 +00:00
|
|
|
if value:find("FAIL") == nil then
|
2022-07-07 15:27:30 +00:00
|
|
|
local p = extract_filepath(value)
|
|
|
|
if p then
|
2022-07-07 22:30:46 +00:00
|
|
|
value = package_path .. util.ltrim(value)
|
2022-07-07 15:27:30 +00:00
|
|
|
end
|
2022-02-23 05:28:21 +00:00
|
|
|
end
|
2022-02-23 10:01:19 +00:00
|
|
|
else
|
|
|
|
local p = extract_filepath(value)
|
|
|
|
if p then
|
|
|
|
failed = true
|
|
|
|
value = p .. util.ltrim(value)
|
|
|
|
changed = true
|
|
|
|
end
|
2022-02-23 05:28:21 +00:00
|
|
|
end
|
2022-07-07 15:27:30 +00:00
|
|
|
trace(value)
|
2021-12-15 08:02:22 +00:00
|
|
|
table.insert(lines, value)
|
2022-02-23 10:01:19 +00:00
|
|
|
if itemn == 1 and failed and changed then
|
|
|
|
itemn = #lines
|
|
|
|
end
|
2021-12-15 08:02:22 +00:00
|
|
|
end
|
2022-06-15 04:11:10 +00:00
|
|
|
::continue::
|
2021-12-15 08:02:22 +00:00
|
|
|
end
|
2021-04-19 06:10:06 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2021-12-15 08:02:22 +00:00
|
|
|
if event == "stderr" then
|
|
|
|
if data then
|
|
|
|
for _, value in ipairs(data) do
|
|
|
|
if value ~= "" then
|
|
|
|
table.insert(errorlines, value)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
2022-01-06 23:29:40 +00:00
|
|
|
if next(errorlines) ~= nil and runner == "golangci-lint" then
|
2022-01-11 02:50:11 +00:00
|
|
|
efm =
|
2022-10-22 12:39:48 +00:00
|
|
|
[[level=%tarning\ msg="%m:\ [%f:%l:%c:\ %.%#]",level=%tarning\ msg="%m",level=%trror\ msg="%m:\ [%f:%l:%c:\ %.%#]",level=%trror\ msg="%m",%f:%l:%c:\ %m,%f:%l:\ %m,%f:%l\ %m]]
|
2022-01-11 02:50:11 +00:00
|
|
|
end
|
2022-11-29 02:53:33 +00:00
|
|
|
|
|
|
|
sprite.on_close()
|
2021-12-15 08:02:22 +00:00
|
|
|
end
|
2021-12-10 10:13:23 +00:00
|
|
|
|
2021-12-15 08:02:22 +00:00
|
|
|
if event == "exit" then
|
2022-11-29 02:53:33 +00:00
|
|
|
sprite.on_close()
|
2022-05-29 13:07:39 +00:00
|
|
|
if type(cmd) == "table" then
|
|
|
|
cmd = table.concat(cmd, " ")
|
|
|
|
end
|
2022-05-30 14:32:26 +00:00
|
|
|
local info = cmd
|
2022-05-29 13:07:39 +00:00
|
|
|
local level = vim.lsp.log_levels.INFO
|
2021-12-15 08:02:22 +00:00
|
|
|
if #errorlines > 0 then
|
|
|
|
if #lines > 0 then
|
|
|
|
vim.list_extend(errorlines, lines)
|
|
|
|
end
|
2022-07-07 15:27:30 +00:00
|
|
|
trace(errorlines)
|
2021-12-15 08:02:22 +00:00
|
|
|
vim.fn.setqflist({}, " ", {
|
|
|
|
title = cmd,
|
|
|
|
lines = errorlines,
|
|
|
|
efm = efm,
|
|
|
|
})
|
2022-05-27 01:39:29 +00:00
|
|
|
failed = true
|
2022-06-01 11:29:13 +00:00
|
|
|
log(errorlines[1], job_id)
|
2022-05-27 01:39:29 +00:00
|
|
|
vim.cmd([[echo v:shell_error]])
|
2021-12-15 08:02:22 +00:00
|
|
|
elseif #lines > 0 then
|
2022-07-07 15:27:30 +00:00
|
|
|
trace(lines)
|
2022-07-07 16:34:50 +00:00
|
|
|
local opts = {}
|
|
|
|
if _GO_NVIM_CFG.test_efm == true then
|
|
|
|
efm = require("go.gotest").efm()
|
|
|
|
opts = {
|
|
|
|
title = cmd,
|
|
|
|
lines = lines,
|
|
|
|
efm = efm,
|
|
|
|
}
|
|
|
|
else
|
|
|
|
opts = {
|
|
|
|
title = cmd,
|
|
|
|
lines = lines,
|
|
|
|
}
|
|
|
|
end
|
|
|
|
vim.fn.setqflist({}, " ", opts)
|
2021-12-15 08:02:22 +00:00
|
|
|
end
|
2021-12-16 06:46:52 +00:00
|
|
|
|
2022-05-27 01:39:29 +00:00
|
|
|
if tonumber(data) ~= 0 then
|
|
|
|
failed = true
|
2022-05-29 13:07:39 +00:00
|
|
|
info = info .. " exited with code: " .. tostring(data)
|
|
|
|
level = vim.lsp.log_levels.ERROR
|
2022-05-27 01:39:29 +00:00
|
|
|
end
|
2022-02-02 06:37:07 +00:00
|
|
|
_GO_NVIM_CFG.job_id = nil
|
2022-02-23 05:28:21 +00:00
|
|
|
if failed then
|
2022-05-29 13:07:39 +00:00
|
|
|
cmd = cmd .. " go test failed"
|
|
|
|
level = vim.lsp.log_levels.WARN
|
2022-07-30 13:05:27 +00:00
|
|
|
util.quickfix('botright copen')
|
2022-02-23 05:28:21 +00:00
|
|
|
end
|
2022-02-23 10:01:19 +00:00
|
|
|
|
|
|
|
itemn = 1
|
2022-05-30 14:32:26 +00:00
|
|
|
if failed then
|
|
|
|
vim.notify(info .. " failed", level)
|
2022-05-31 06:16:09 +00:00
|
|
|
else
|
|
|
|
vim.notify(info .. " succeed", level)
|
2022-05-30 14:32:26 +00:00
|
|
|
end
|
2022-02-23 10:01:19 +00:00
|
|
|
failed = false
|
2021-04-19 06:10:06 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2022-05-30 14:04:52 +00:00
|
|
|
-- releative dir does not work without shell
|
|
|
|
log("cmd ", cmdstr)
|
|
|
|
_GO_NVIM_CFG.job_id = vim.fn.jobstart(cmdstr, {
|
2021-07-08 16:16:22 +00:00
|
|
|
on_stderr = on_event,
|
|
|
|
on_stdout = on_event,
|
|
|
|
on_exit = on_event,
|
|
|
|
stdout_buffered = true,
|
2021-12-10 00:43:59 +00:00
|
|
|
stderr_buffered = true,
|
2021-07-08 16:16:22 +00:00
|
|
|
})
|
2022-05-24 07:23:53 +00:00
|
|
|
return cmd
|
2021-04-19 06:10:06 +00:00
|
|
|
end
|
|
|
|
|
2022-02-02 06:37:07 +00:00
|
|
|
M.stopjob = function(id)
|
|
|
|
id = id or _GO_NVIM_CFG.job_id
|
|
|
|
if id == nil then
|
|
|
|
return
|
|
|
|
end
|
|
|
|
local r = vim.fn.jobstop(id)
|
|
|
|
if r == 1 then
|
|
|
|
_GO_NVIM_CFG.job_id = nil
|
|
|
|
else
|
|
|
|
util.warn("failed to stop job " .. tostring(id))
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2021-04-19 06:10:06 +00:00
|
|
|
return M
|