This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"net/http" | |
"testing" | |
) | |
func TestSomeTest(t *testing.T) { | |
tt := []struct { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
call plug#begin() | |
Plug 'neovim/nvim-lspconfig' | |
call plug#end() | |
lua require("lsp_config") | |
autocmd BufWritePre *.go lua vim.lsp.buf.formatting() | |
autocmd BufWritePre *.go lua goimports(1000) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"go.languageServerFlags": [ | |
"-logfile=/tmp/vs-gopls.log", "-rpc.trace" | |
] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
call plug#begin() | |
Plug 'neovim/nvim-lspconfig' | |
Plug 'mileszs/ack.vim' | |
Plug 'justinmk/vim-dirvish' | |
Plug 'vim-airline/vim-airline' | |
Plug 'ctrlpvim/ctrlp.vim' | |
Plug 'dracula/vim', { 'as': 'dracula' } | |
call plug#end() | |
lua <<EOF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//what i suggest | |
@Command(name = "list-assets", description = "List all defined assets. Usage: `list-assets <ID>`") | |
public String listAssets(@Param(name = "id", description = "Model ID") String id) { | |
return Try.of(() -> simplAPI.listAssets(id)) | |
.recover(x -> Match(x).of( | |
Case($(instanceOf(ValidationException.class)), | |
t -> getValidationErrorRunningCommandMessage("list-assets", "", t)), //move logging to the SIMPL methods itself | |
Case($(instanceOf(Exception.class)), | |
t -> getErrorRunningCommandMessage("list-assets", t)) //move logging to the SIMPL methods itself | |
)) |