Package pq is a pure Go Postgres driver for the database/sql package.
+build darwin dragonfly freebsd linux nacl netbsd openbsd solaris rumprun

package pq

import (
	
	
)

func () (string, error) {
	,  := user.Current()
	if  == nil {
		return .Username, nil
	}

	 := os.Getenv("USER")
	if  != "" {
		return , nil
	}

	return "", ErrCouldNotDetectUsername