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.
ojizero 01c9ea7079 update env var used goreleaser pirms 1 gada
.github/workflows update env var used goreleaser pirms 1 gada
cmd add goreleaser package pirms 1 gada
.gitignore add goreleaser package pirms 1 gada
.goreleaser.yml add goreleaser package pirms 1 gada
LICENSE Initial release pirms 2 gadiem
README.md added tests badge pirms 1 gada
findup.go correctly return error if it's from Getwd pirms 2 gadiem
findup_test.go fixed API making it reasonable :D pirms 2 gadiem
go.mod add basic CLI for package pirms 1 gada
go.sum add basic CLI for package pirms 1 gada

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