You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We can see that there are no big differences when it comes to operating on mgo or beedb databases; they are both based on structs. This is the Go way of doing things.
You need to install Go first, then download the version appropriate for your operating system. Decompress the package to directly use it.
@@ -145,6 +145,60 @@ First, download the version of [Sublime](http://www.sublimetext.com/) suitable f
145
145
146
146
Vim is a popular text editor for programmers, which evolved from its slimmer predecessor, Vi. It has functions for intelligent completion, compilation and jumping to errors.
147
147
148
+
vim-go is vim above an open-source go language using the most extensive development environment plug-ins
149
+
150
+
The plugin address:[github.com/fatih/vim-go](https://github.com/fatih/vim-go)
151
+
152
+
Vim plugin management are the mainstream [Pathogen](https://github.com/tpope/vim-pathogen) and [Vundle](https://github.com/VundleVim/Vundle.vim)
153
+
,But the aspects thereof are different.
154
+
Pathogen is to solve each plug-in after the installation of files scattered to multiple directories and poor management of the existence. Vundle is to solve the automatic search and download plug-ins exist.
Edit .vimrc,Vundle the relevant configuration will be placed in the beginning([Refer to the Vundle documentation for details](https://github.com/VundleVim/Vundle.vim))
165
+
166
+
```sh
167
+
set nocompatible " be iMproved, required
168
+
filetype off " required
169
+
170
+
" set the runtime path to include Vundle and initialize
171
+
set rtp+=~/.vim/bundle/Vundle.vim
172
+
call vundle#begin()
173
+
174
+
"let Vundle manage Vundle, required
175
+
Plugin 'gmarik/Vundle.vim'
176
+
177
+
" All of your Plugins must be added before the following line
178
+
call vundle#end() " required
179
+
filetype plugin indent on " required
180
+
181
+
```
182
+
2.Install Vim-go
183
+
184
+
Edit ~/.vimrc,Add a line between vundle #begin and vundle #end:
Copy file name to clipboardExpand all lines: en/02.3.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -507,7 +507,7 @@ There are some special operators when we import packages, and beginners are alwa
507
507
_ "github.com/ziutek/mymysql/godrv"
508
508
)
509
509
510
-
The `_` operator actually means we just want to import that package and execute its `init` function, and we are not sure if want to use the functions belonging to that package.
510
+
The `_` operator actually means we just want to import that package and execute its `init` function, and we are not sure if we want to use the functions belonging to that package.
We can see that there are no big differences when it comes to operating on mgo or beedb databases; they are both based on structs. This is the Go way of doing things.
0 commit comments