選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
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")