Discussion
Loading...

#Tag

Log in
  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
Kevin Bowen :xfce:
Kevin Bowen :xfce:
@kevinbowen@hachyderm.io  ·  activity timestamp 7 months ago

As a bit of a diversion, I somehow ended up working through the #golang #tutorial this weekend.

I don't remotely consider myself much of a programmer. Possibly, a bit of a code janitor. I was just looking for a bit of an introduction to an unfamiliar language.

I have to say, #Go has some really clear, clean, and helpful #Documentation for a beginner wanting to get started with the language. I'm impressed.

Between the interactive tour(https://go.dev/tour/welcome/1) and the Getting Started tutorial(https://go.dev/doc/tutorial/), I honestly had fun dipping my toes into Go.

https://go.dev/learn/

Additional resources:
https://gobyexample.com/

#programming

Get Started - The Go Programming Language

2 more link(s)
Kevin Bowen :xfce:
Kevin Bowen :xfce:
@kevinbowen@hachyderm.io replied  ·  activity timestamp 7 days ago

At this point, I think I'm satisfied with the vim-go plugin providing me with a stoopid simple template for prototyping very basic example programs.

It's definitely not a #REPL like I'm used to with #Python or running from the #CLI; but, it's a bit of a useful workflow to get started. *shrug*

These keybindings help a bit:

```
augroup go
autocmd!
autocmd BufNewFile,BufRead *.go setlocal
\ noexpandtab
\ tabstop=4
\ shiftwidth=4
autocmd FileType go nmap <leader>b :<C-u>call <SID>build_go_files()<CR>
autocmd FileType go nmap <leader>d <Plug>(go-doc)
autocmd FileType go nmap <leader>f <Plug>(go-fmt)
autocmd FileType go nmap <leader>i <Plug>(go-info)
autocmd FileType go nmap <leader>l <Plug>(go-lint)
autocmd FileType go nmap <leader>r <Plug>(go-run)
autocmd FileType go nmap <leader>v <Plug>(go-vet)
autocmd FileType go nmap <leader>t <Plug>(go-test)
autocmd FileType go nmap <Leader>c <Plug>(go-coverage-toggle)
augroup END
```

#Golang #Vim

  • Copy link
  • Flag this comment
  • Block

Kakapo Social

Kakapo Social: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.1-beta.22 no JS en
Automatic federation enabled
Log in
  • Explore
  • About
  • Members
  • Code of Conduct