Skip to content

Instantly share code, notes, and snippets.

Avatar

Egon Elbre egonelbre

View GitHub Profile
@egonelbre
egonelbre / architecture.md
Last active May 21, 2020
Gio architecture brain-dump
View architecture.md
title
Architecture

Introduction

Gio implements an Immediate Mode User Interface.. This approach can be implemented in multiple ways, however the overarching similarity is that the program:

  1. listens for events such as mouse or keyboard input,
View closures.go
// 🚀 Fiber is an Express inspired web framework written in Go with 💖
// 📌 API Documentation: https://fiber.wiki
// 📝 Github Repository: https://github.com/gofiber/fiber
// 🙏 Credits to github.com/labstack/echo/blob/master/middleware/csrf.go
package csrf
import (
"crypto/subtle"
"errors"
@egonelbre
egonelbre / go.mod
Last active Dec 27, 2019
generate-aliases generates aliases for specified package
View go.mod
module generate-aliases
go 1.13
@egonelbre
egonelbre / go.mod
Last active Dec 27, 2019
Tool for rewriting import paths safely.
View go.mod
module rename-imports
go 1.13
require golang.org/x/tools v0.0.0-20191224055732-dd894d0a8a40
@egonelbre
egonelbre / count.svg
Created Sep 19, 2019
Density plot example.
View count.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@egonelbre
egonelbre / testcase.go
Created Mar 12, 2019
grpc bidi streaming testcase
View testcase.go
package main
import (
"context"
"errors"
"fmt"
"net"
"time"
"google.golang.org/grpc"
@egonelbre
egonelbre / default.txt
Last active Dec 15, 2018
Go all.bat on all different filesystems
View default.txt
Building Go cmd/dist using C:\Go
Building Go toolchain1 using C:\Go.
Building Go bootstrap cmd/go (go_bootstrap) using Go toolchain1.
Building Go toolchain2 using go_bootstrap and Go toolchain1.
Building Go toolchain3 using go_bootstrap and Go toolchain2.
Building packages and commands for windows/amd64.
##### Testing packages.
ok archive/tar 3.046s
@egonelbre
egonelbre / absolutecover.go
Created Oct 5, 2018
Converts Go profile from package paths to filepaths
View absolutecover.go
package main
import (
"bufio"
"bytes"
"fmt"
"io"
"io/ioutil"
"os"
"path"
@egonelbre
egonelbre / main.go
Created Mar 1, 2018
Size visual changing
View main.go
package main
import (
"encoding/hex"
"fmt"
"math/rand"
"github.com/gopherjs/vecty"
"github.com/gopherjs/vecty/elem"
"github.com/gopherjs/vecty/event"
@egonelbre
egonelbre / main.go
Last active Oct 14, 2018
Vecty bugs
View main.go
package main
import (
"encoding/hex"
"fmt"
"math/rand"
"github.com/gopherjs/vecty"
"github.com/gopherjs/vecty/elem"
"github.com/gopherjs/vecty/event"
You can’t perform that action at this time.