Skip to content

Instantly share code, notes, and snippets.

View rodolfoag's full-sized avatar

Rodolfo Goncalves rodolfoag

  • Belo Horizonte, MG, Brazil
View GitHub Profile
@rodolfoag
rodolfoag / main.go
Last active July 18, 2021 20:03
Add text to image in go
package main
import (
"encoding/csv"
"fmt"
"os"
"strings"
"github.com/fogleman/gg"
)
// Javascript Classical Inheritance - Prototypes
function Animal (name) {
this.name = name;
}
Animal.prototype.breathe = function () {
return "I'm breathing";
};