Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
Ameer A 626dd4448f
Merge pull request #1 from ojizero/test-matrix
11 meses atrás
.github/workflows corrected strategy placement 11 meses atrás
cmd add goreleaser package 1 ano atrás
.gitignore add goreleaser package 1 ano atrás
.goreleaser.yml add goreleaser package 1 ano atrás
LICENSE Initial release 1 ano atrás
README.md added tests badge 1 ano atrás
findup.go remote usage of afero from main package to reduce binary output size 1 ano atrás
findup_test.go remote usage of afero from main package to reduce binary output size 1 ano atrás
go.mod add basic CLI for package 1 ano atrás
go.sum remote usage of afero from main package to reduce binary output size 1 ano atrás

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