Skip to content

Instantly share code, notes, and snippets.

View jbuberel's full-sized avatar

Jason Buberel jbuberel

  • Google, Inc.
  • Sunnyvale, CA
View GitHub Profile
@jbuberel
jbuberel / fluentlogger.go
Created November 16, 2015 16:03
Using Fluentd logger with Go on Google Cloud
// You'll need to run the following command:
// go get github.com/fluent/fluent-logger-golang/fluent
// ...before running this code sample with 'go run'
package main
import (
"runtime"
"github.com/fluent/fluent-logger-golang/fluent"
)
func main() {
logger, _ := fluent.New(fluent.Config{})

Background

In conversations with several community members who have been in the position of teaching new Go programmers how the Go toolchain works, $GOPATH is often mentioned as an unecessary hurdle. For some users, especially on Windows, setting environment variables is not second nature.

When users are attempting to run their first Go programs, supporting a default value for $GOPATH would make life simpler.

Proposal