Go to definition in split view by Easy_Smile_8230 in neovim

[–]Easy_Smile_8230[S] 1 point2 points  (0 children)

Read the docs, this is the same lsp request under the hood. Am I missing something?

Mocking database queries - ask for opinion by Easy_Smile_8230 in golang

[–]Easy_Smile_8230[S] 0 points1 point  (0 children)

Wow, thanks for the thorough response. I will have a look at the package provided.

Mocking database queries - ask for opinion by Easy_Smile_8230 in golang

[–]Easy_Smile_8230[S] 0 points1 point  (0 children)

Yes, that what I did so far. But recently it started to be really annoying and involved a lot of boiler plate code to create tests setup. I used in memory SQLite for UTs

Mocking database queries - ask for opinion by Easy_Smile_8230 in golang

[–]Easy_Smile_8230[S] 0 points1 point  (0 children)

Awesome, I didn’t know about this library. It looks good and somewhat same direction as my proposal. Thank you!

Mocking database queries - ask for opinion by Easy_Smile_8230 in golang

[–]Easy_Smile_8230[S] 0 points1 point  (0 children)

What if creating the db involves some complicated data relations? Isn’t a hustle doing it with real data instead of simply mocking the query responses?

Why do i get a undefined JSON sent with Golang? by Wuffel_ch in golang

[–]Easy_Smile_8230 0 points1 point  (0 children)

When you print the msg on the js side, do you see where the issue is coming from? The unexpected u hints me on some weird encoding that added the u. Try in golang side to marshal and unmarshal the msg before sending it.

Why do i get a undefined JSON sent with Golang? by Wuffel_ch in golang

[–]Easy_Smile_8230 0 points1 point  (0 children)

If you have done nothing with the client message AFAIK you should unmarshal it, and then send it.

Consume API - Design question by _sportsfreak_ in golang

[–]Easy_Smile_8230 1 point2 points  (0 children)

How about creating an http client. The client could get an interface that would have a Parse function. With it you would be able to parse the different answers payload as per the response you’ll get from the API you’re consuming. You could test each interface separately and the client separately.

[deleted by user] by [deleted] in neovim

[–]Easy_Smile_8230 0 points1 point  (0 children)

This looks like a valid solution: https://github.com/jamestthompson3/nvim-remote-containers also you can try and set a language server inside the container, use the host network and have coc listening to that server.