Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
Ameer A 626dd4448f
Merge pull request #1 from ojizero/test-matrix
pirms 5 mēnešiem
.github/workflows corrected strategy placement pirms 5 mēnešiem
cmd add goreleaser package pirms 5 mēnešiem
.gitignore add goreleaser package pirms 5 mēnešiem
.goreleaser.yml add goreleaser package pirms 5 mēnešiem
LICENSE Initial release pirms 9 mēnešiem
README.md added tests badge pirms 5 mēnešiem
findup.go remote usage of afero from main package to reduce binary output size pirms 5 mēnešiem
findup_test.go remote usage of afero from main package to reduce binary output size pirms 5 mēnešiem
go.mod add basic CLI for package pirms 5 mēnešiem
go.sum remote usage of afero from main package to reduce binary output size pirms 5 mēnešiem

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