You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Ameer A 626dd4448f
Merge pull request #1 from ojizero/test-matrix
преди 3 месеца
.github/workflows corrected strategy placement преди 3 месеца
cmd add goreleaser package преди 4 месеца
.gitignore add goreleaser package преди 4 месеца
.goreleaser.yml add goreleaser package преди 4 месеца
LICENSE Initial release преди 7 месеца
README.md added tests badge преди 4 месеца
findup.go remote usage of afero from main package to reduce binary output size преди 4 месеца
findup_test.go remote usage of afero from main package to reduce binary output size преди 4 месеца
go.mod add basic CLI for package преди 4 месеца
go.sum remote usage of afero from main package to reduce binary output size преди 4 месеца

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")