diff --git a/playground/init_lazy.lua b/playground/init_lazy.lua index 786d57e..aa55344 100644 --- a/playground/init_lazy.lua +++ b/playground/init_lazy.lua @@ -47,8 +47,8 @@ local function load_plugins() 'theHamsta/nvim-dap-virtual-text', 'ray-x/guihua.lua', }, - config = function() - require('go').setup({ + config = true, + opts = { verbose = true, lsp_cfg = { handlers = { @@ -59,8 +59,7 @@ local function load_plugins() ), }, }, -- false: do nothing - }) - end, + } }, } end diff --git a/playground/sampleApp/pkg/findAllSubStr.go b/playground/sampleApp/pkg/findAllSubStr.go index 54b4d14..c504298 100644 --- a/playground/sampleApp/pkg/findAllSubStr.go +++ b/playground/sampleApp/pkg/findAllSubStr.go @@ -5,6 +5,7 @@ import ( "sync" ) +// FindAllSubStr function  func FindAllSubStr(stack, niddle string) (result []int) { stack = strings.ToLower(stack) niddle = strings.ToLower(niddle) @@ -17,6 +18,7 @@ func FindAllSubStr(stack, niddle string) (result []int) { return result } +// FindSubStr function  func FindSubStr(stack, niddle string) (result int) { stack = strings.ToLower(stack) niddle = strings.ToLower(niddle)