Skip to content
#

golang

go logo

Go is a programming language built to resemble a simplified version of the C programming language. It compiles at the machine level. Go was created at Google in 2007 by Robert Griesemer, Rob Pike, and Ken Thompson.

Here are 38,985 public repositories matching this topic...

theckman
theckman commented Aug 14, 2018

The general consensus of the Go community has been converging on the idea that the pkg/ directory is a useless abstraction / indirection. Instead, people are encouraged to either put the packages in the top-level of the repository, or to create a repository structure that structures things based on their primary functionality of domain in the business logic.

So while in your example you may e

kpeters58
kpeters58 commented Aug 30, 2019

The syntax files is written in yaml-format and specify how to highlight
languages.

Should be 'are written'.

It would also be very helpful to add info about how the syntax YAML files should be named. I have no clue after reading the docs. .YAML ?

dgraph
juicemia
juicemia commented Jun 24, 2019

I was trying to figure out how to remove the "level" and "message" keys from log output and I couldn't find anything in the documentation.

After going through the source code, I found these lines in the JSON encoder's implementation of EncodeEntry:

	if final.LevelKey != "" {
		final.addKey(final.LevelKey)
		cur := final.buf.Len()
		final.EncodeLevel(ent.Level, final)
		if cu

Created by Robert Griesemer, Rob Pike, Ken Thompson

Released November 10, 2009

Repository
golang/go
Website
golang.org
Wikipedia
Wikipedia

Related Topics

c language
You can’t perform that action at this time.