refactor: move requires in place where they used (#22)
* refactor(comment): move require to a function * refactor(gotests): move requires inside of functions * refactor(health): move requires inside of function * refactor(iferr): move requires inside of a function * refactor(impl): move some requires inside of functions * refactor(installer): move requires inside of function * refactor(struct_tags): move requires into function * refactor(dap): move import into function * refactor(utils): move import into functions
This commit is contained in:
parent
e8fe6c5b15
commit
2f0edbfdfc
10 changed files with 43 additions and 34 deletions
|
|
@ -1,5 +1,3 @@
|
|||
local Job = require "plenary.job"
|
||||
local u = require "gopher._utils"
|
||||
local urls = {
|
||||
gomodifytags = "github.com/fatih/gomodifytags",
|
||||
impl = "github.com/josharian/impl",
|
||||
|
|
@ -10,6 +8,9 @@ local urls = {
|
|||
|
||||
---@param pkg string
|
||||
local function install(pkg)
|
||||
local Job = require "plenary.job"
|
||||
local u = require "gopher._utils"
|
||||
|
||||
local url = urls[pkg] .. "@latest"
|
||||
|
||||
Job:new({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue