feat(json2go): implement

This commit is contained in:
Oleksandr Smirnov 2025-11-28 16:35:52 +02:00
parent 4a2384ade8
commit 72dd68f25f
No known key found for this signature in database
7 changed files with 141 additions and 1 deletions

View file

@ -70,6 +70,11 @@ cmd("GoTagClear", function()
require("gopher").tags.clear()
end)
-- :GoJson
cmd("GoJson", function(opts)
require("gopher.json2go").json2go(opts.fargs[1])
end, "?")
-- :GoTest
cmd("GoTestAdd", function()
require("gopher").test.add()
@ -89,7 +94,6 @@ cmd("GoMod", function(opts)
end, "*")
cmd("GoGet", function(opts)
vim.print(opts)
require("gopher").get(opts.fargs)
end, "*")