Skip to content

Latest commit

 

History

History
67 lines (46 loc) · 1.08 KB

README.md

File metadata and controls

67 lines (46 loc) · 1.08 KB

go-pkg-seeker

This repository presents a command tool for searching a word from go-package. This provides three usages; it can be used to search a selected word from a selected go-package in terminal, to utilize server-mode and search through http request and to see all the search history in terminal. The result will include the selected filename, the selected keyword, the line number in which the searched word is located in the file, and the details.

Getting Started

prerequisite

go get github.com/gorilla/mux
go get github.com/stretchr/testify
go get github.com/fatih/color

Installing

go get github.com/Tomoka64/go-skilltest
make install-dep make deps

を実行してください

Usage

Usage1: 'package-name' 'word'

e.g.) fmt TODO

fmt TODO

Usage2: localhost

localhost

Usage3: history

history

Basic Model

type Result struct {
	Filename string `json:"filename"`
	Keyword  string `json:"keyword"`
	Line     int    `json:"line"`
	Detail   string `json:"detail"`
}

Author

Tomoka Yokomizo