go项目

作者: 洲游xx | 来源:发表于2022-05-21 00:09 被阅读0次
一:怎么mod init

不要:go mod init /usr/local/go/src/gin-demo
go: malformed module path "/usr/local/go/src/gin-demo": empty path element

请到项目根目录直接:go mod init gin-demo

二:代码提示:#####

一:


image.png

// Controls whether suggestions should be accepted on commit characters. For example, in JavaScript, the semi-colon (;) can be a commit character that accepts a suggestion and types that character.
"editor.acceptSuggestionOnCommitCharacter": true,

   // Controls if suggestions should be accepted on 'Enter' - in addition to 'Tab'. Helps to avoid ambiguity between inserting new lines or accepting suggestions. The value 'smart' means only accept a suggestion with Enter when it makes a textual change
   "editor.acceptSuggestionOnEnter": "on",

   // Controls the delay in ms after which quick suggestions will show up.
   "editor.quickSuggestionsDelay": 10,

   // Controls if suggestions should automatically show up when typing trigger characters
   "editor.suggestOnTriggerCharacters": true,

   // Controls if pressing tab inserts the best suggestion and if tab cycles through other suggestions
   "editor.tabCompletion": "off",

   // Controls whether sorting favours words that appear close to the cursor
   "editor.suggest.localityBonus": true,

   // Controls how suggestions are pre-selected when showing the suggest list
   "editor.suggestSelection": "first",

   // Enable word based suggestions
   "editor.wordBasedSuggestions": true,

   // Enable parameter hints
   "editor.parameterHints.enabled": true,

相关文章

网友评论

      本文标题:go项目

      本文链接:https://www.haomeiwen.com/subject/xlwqprtx.html