Skip to content

A command tool that searches Comments such as TODO, NOTE etc from go-package files, provides server mode as well.

Notifications You must be signed in to change notification settings

Tomoka64/go-pkg-seeker

Repository files navigation

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

About

A command tool that searches Comments such as TODO, NOTE etc from go-package files, provides server mode as well.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published