[mirror] Make your go dev experience better github.com/olexsmir/gopher.nvim
neovim golang

fix: type annotation for logger

olexsmir.xyz ef4a3a1c e8d53840

verified
Changed files
+2 -2
lua
gopher
_utils
+2 -2
lua/gopher/_utils/log.lua
··· 3 3 -- for the code i have stolen(or have inspected by idk) 4 4 local c = require "gopher.config" 5 5 6 - ---@class Gopher.Logger 6 + ---@class gopher.Logger 7 7 ---@field get_outfile fun():string 8 8 ---@field trace fun(...) 9 9 ---@field fmt_trace fun(...) ··· 44 44 float_precision = 0.01, 45 45 } 46 46 47 - ---@type Gopher.Logger 47 + ---@type gopher.Logger 48 48 ---@diagnostic disable-next-line: missing-fields 49 49 local log = {} 50 50