https://github.com/ojizero/gofindup
Find up utility implemented in Go
https://github.com/ojizero/gofindup
find-up findup go golang gomodule gomodules
Last synced: 3 months ago
JSON representation
Find up utility implemented in Go
- Host: GitHub
- URL: https://github.com/ojizero/gofindup
- Owner: ojizero
- License: mit
- Created: 2019-12-12T20:33:23.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-04-26T10:55:28.000Z (about 5 years ago)
- Last Synced: 2025-01-14T00:25:38.165Z (5 months ago)
- Topics: find-up, findup, go, golang, gomodule, gomodules
- Language: Go
- Size: 17.6 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Go Find Up
[](https://godoc.org/github.com/ojizero/gofindup)
> Find a file or directory by walking up parent directories.
## Usage
Install latest version
```sh
go get github.com/ojizero/gofindup
```Import it into your code
```go
import "github.com/ojizero/gofindup"
```This package only exposes 2 functions, `Findup` and `FindupFrom`,
```go
// 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")
```