Registry / config / tcnksm-go-gitconfig

tcnksm-go-gitconfig

JSON →
library0.1.2gogounverified

Package gitconfig enables you to use `~/.gitconfig` values in Golang.

go get github.com/tcnksm/go-gitconfig
INSTALL
IMPORT
SIG · TCNKSM-GO-GITCONFI
T
tcnksm-go-gitconfig
configgov0.1.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

gitconfig
github.com/tcnksm/go-gitconfig

Read Git configuration values

package main import ( "fmt" "github.com/tcnksm/go-gitconfig" ) func main() { user, err := gitconfig.Global("user.name") if err != nil { panic(err) } fmt.Println(user) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.1.2latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
37 hits · last 30 days
node
36
Resources
tcnksm-go-gitconfig — go get tcnksm-go-gitconfig · libregistry