Skip to content

A Go package with information about programming languages, sourced from Github Linguist.

License

Notifications You must be signed in to change notification settings

NDoolan360/github-langs-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A Go package with information about programming languages, sourced from Github Linguist.

Topics

Resources

License

Stars

Watchers

Forks

Languages