traverse

command module
v0.0.0-...-62a904e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 17, 2021 License: MIT Imports: 6 Imported by: 0

README ¶

Traverse

Traverse any git repo with go!

commits commits


🚀 Getting Started\

Description

In short this packages make it so that users can grab teh contents of github repo and

Installation

Package can be downloaded by using go

go get github.com/NinjaAung/traverse

Usage

There are three main function that traverse has:

Scraping.Run(repoName)

Scraping.Run() is of course resposible of returning a repo struct resposible with data: Name, Route, File and Dir used like this:

repo, _ := Scraping.Run("NinjaAung/Traverse")
*repo.SaveToJSON(filePath)

SaveToJSON takes a repo struct and marshall it's data in a list of repo in json, used like this:

repo.SaveToJSON("example.json")
tra(filePath)

tra, short for traverse take filePath to the json info and reads the first item or any if desire and allows the user to traverse through it in the terminal

tra("example.json")

Misc

Here is a collection of traverse related items:

Documentation ¶

The Go Gopher

There is no documentation for this package.

Directories ¶

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL