Skip to content

revett/common

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

common

Builds GoDoc Go Report Card License

Shared common code for my Go projects.

log

Create a custom rs/zerolog console logger:

package main

import (
	"context"

	commonlog "github.com/revett/common/log"
	"github.com/rs/zerolog/log"
)

func main() {
	log.Logger = commonlog.New()
	ctx := context.Background()

	// log.Info().Msg("...")
	// log.Fatal().Err(err).Send()
}

.golangci.yml

Update the golangci/golangci-lint within a repo:

curl -o .golangci.yml https://raw.githubusercontent.com/revett/dotfiles/main/.golangci.yml

About

Shared common code for my Go projects.

Topics

Resources

License

Stars

Watchers

Forks