github-langs-go
is a Go package that provides information about programming languages sourced from Github Linguist. It allows users to retrieve details such as color, extensions, and aliases for a given programming language.
-
Installation:
go get github.com/NDoolan360/github-langs-go
-
Import in Your Code:
import "github.com/NDoolan360/github-langs-go"
-
Example Usage:
func main() { language, err := githublangsgo.GetLanguage("go") if err != nil { fmt.Println("Error:", err) return } fmt.Println("Language Color:", language.Color) // Language Color: #00ADD8 }
- Retrieve information about programming languages.
- Search by case-insensitive language name or by alias.
If you find any issues or have suggestions for improvements, feel free to open an issue or submit a pull request.
This project is licensed under the MIT License.
Special thanks to the go-toml library for TOML parsing.
Nathan Doolan