Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
Ameer A 626dd4448f
Merge pull request #1 from ojizero/test-matrix
5 месяцев назад
.github/workflows corrected strategy placement 5 месяцев назад
cmd add goreleaser package 5 месяцев назад
.gitignore add goreleaser package 5 месяцев назад
.goreleaser.yml add goreleaser package 5 месяцев назад
LICENSE Initial release 9 месяцев назад
README.md added tests badge 5 месяцев назад
findup.go remote usage of afero from main package to reduce binary output size 5 месяцев назад
findup_test.go remote usage of afero from main package to reduce binary output size 5 месяцев назад
go.mod add basic CLI for package 5 месяцев назад
go.sum remote usage of afero from main package to reduce binary output size 5 месяцев назад

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