Code Monkey home page Code Monkey logo

Comments (6)

bzz avatar bzz commented on July 28, 2024 4

This has been implemented by @lafriks and is included in latest https://github.com/go-enry/go-enry/releases/tag/v2.3.0

from enry.

lunny avatar lunny commented on July 28, 2024 2

Maybe @mcuadros would like also to move this project to go-git organization?

from enry.

lafriks avatar lafriks commented on July 28, 2024 2

when enry is hard forked to go-enry organization I could probably implement this

from enry.

bzz avatar bzz commented on July 28, 2024 1

That would be a simple change to the

enry/utils.go

Line 78 in 697929e

func GetColor(language string) string {
if group information would have been stored somewhere in the data generated from .yml

A naive approach to implement that is to add a new internal/code-generator asset that would output a map Language -> Group so the new GetColor impl would do a lookup in there.

Originally, enry did not have a use case for colors, so implementation of the GetColor was done by @lafriks under #233.

from enry.

bzz avatar bzz commented on July 28, 2024

JFYI I'm not related to the plans of forking enry to a go-enry org.

Meanwhile I have just pushed a https://pkg.go.dev/github.com/bzz/enry/v2 and will be happy to assist adding this feature, if needed.

from enry.

alexanderadam avatar alexanderadam commented on July 28, 2024

Awesome, thank you folks!

from enry.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.