Categorygithub.com/NDoolan360/github-langs-go
repositorypackage
1.0.1
Repository: https://github.com/ndoolan360/github-langs-go.git
Documentation: pkg.go.dev

# README

github-langs-go

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.

Usage

  1. Installation:

    go get github.com/NDoolan360/github-langs-go
    
  2. Import in Your Code:

    import "github.com/NDoolan360/github-langs-go"
    
  3. 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
    }
    

Features

  • Retrieve information about programming languages.
  • Search by case-insensitive language name or by alias.

Contributing

If you find any issues or have suggestions for improvements, feel free to open an issue or submit a pull request.

License

This project is licensed under the MIT License.

Acknowledgments

Special thanks to the go-toml library for TOML parsing.

Author

Nathan Doolan