I am currently working on a program that involves highlighting different squares with different colors based on the state of the board.
I'm having a bit of trouble doing so because the image.encoder type is unexported. As a result, I can't create a slice of func(*image.encoder) objects (which is what image.MarkSquares() returns) to pass to image.SVG().
Would you be open to exporting the image.encoder type, or perhaps creating an exported interface for it? If so, I'd be happy to put together a pull request for it.
I am currently working on a program that involves highlighting different squares with different colors based on the state of the board.
I'm having a bit of trouble doing so because the
image.encoder
type is unexported. As a result, I can't create a slice offunc(*image.encoder)
objects (which is whatimage.MarkSquares()
returns) to pass toimage.SVG()
.Would you be open to exporting the
image.encoder
type, or perhaps creating an exported interface for it? If so, I'd be happy to put together a pull request for it.