Categorygithub.com/mbtamuli/golearngo
repository
0.0.0-20210602080302-a40511da036d
Repository: https://github.com/mbtamuli/golearngo.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# README

GoLearnGo

Resources

https://dave.cheney.net/resources-for-new-go-programmers

I think this is a pretty good enough curation of all the resources one will ever need to "Get Started" with Go.

Progress

  1. I have started with https://tour.golang.org
  2. I am making a client to consume the DigitalOcean API to understand the concepts better. Looking at the source of godo as inspiration.
  3. Done with go-koans
  4. Experimenting with GitHub v4 GraphQL API
  5. Gophercises quiz
  6. Random snippets added

Notes

If using database/sql, you can log sql statements using

import (
	"github.com/luna-duclos/instrumentedsql"
	"modernc.org/sqlite"
)

logger := instrumentedsql.LoggerFunc(func(ctx context.Context, msg string, keyvals ...interface{}) {
	log.Printf("%s %v", msg, keyvals)
})

sql.Register("instrumented-sqlite", instrumentedsql.WrapDriver(&sqlite3.SQLiteDriver{}, instrumentedsql.WithLogger(logger)))
db, err := sql.Open("instrumented-sqlite", dataSourceName)