githubsearch

command module
v0.0.0-...-7c564bc Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2023 License: MIT Imports: 6 Imported by: 0

README

A simple web application built on top of the GitHub code search API that allows you to search for specific code fragments across all public repositories on GitHub.

Features:

  • Unlike the raw GitHub API, it sort of emulates ability to search for special characters and exact phrases (you can even use wildcards, such as moment(*).tz(*)). It does this by fetching first 500 results from the GitHub API and then manually filtering out any that don't actually contain an exact match with the searched pattern.
  • As a second refinement, it orders the returned matches by how many watchers (stars) their repository has, starting with the most popular. The reasoning is that more popular repositories are more likely to contain relevant code examples.

It uses:

  • the built-in Go http server and HTML templating engine
  • the go-github GitHub api client

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