Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
Ameer A 626dd4448f
Merge pull request #1 from ojizero/test-matrix
vor 5 Monaten
.github/workflows corrected strategy placement vor 5 Monaten
cmd add goreleaser package vor 5 Monaten
.gitignore add goreleaser package vor 5 Monaten
.goreleaser.yml add goreleaser package vor 5 Monaten
LICENSE Initial release vor 9 Monaten
README.md added tests badge vor 5 Monaten
findup.go remote usage of afero from main package to reduce binary output size vor 5 Monaten
findup_test.go remote usage of afero from main package to reduce binary output size vor 5 Monaten
go.mod add basic CLI for package vor 5 Monaten
go.sum remote usage of afero from main package to reduce binary output size vor 5 Monaten

README.md

Go Find Up

GoDoc Run tests

Find a file or directory by walking up parent directories.

Usage

Install latest version

go get github.com/ojizero/gofindup

Import it into your code

import "github.com/ojizero/gofindup"

This package only exposes 2 functions, Findup and FindupFrom,

// looks the file recursively in parents starting from "./"
gofindup.Findup("some-file-or-directory")

// looks the file recursively in parents starting from "./some-starting-directory"
gofindup.FindupFrom("some-file-or-directory", "some-starting-directory")