feat: add gomodifytags support

This commit is contained in:
Smirnov Olexander 2022-05-30 23:34:09 +03:00
parent ca1bc4bd06
commit 303b539475
4 changed files with 144 additions and 1 deletions

View file

@ -0,0 +1,22 @@
return {
---@param t table
---@return boolean
empty = function(t)
if t == nil then
return true
end
return next(t) == nil
end,
---@param s string
---@return string
rtrim = function(s)
local n = #s
while n > 0 and s:find("^%s", n) do
n = n - 1
end
return s:sub(1, n)
end,
}