Skip to content

Instantly share code, notes, and snippets.

panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x0 pc=0x7ff7e53ab99c]
goroutine 1 [running, locked to thread]:
github.com/go-gl/glfw/v3.3/glfw.(*Window).SetInputMode.func1(...)
C:/Users/roffe/go/pkg/mod/github.com/go-gl/glfw/v3.3/[email protected]/input.go:394
github.com/go-gl/glfw/v3.3/glfw.(*Window).SetInputMode(0x7ff7e5c79960?, 0x33001, 0x34001)
C:/Users/roffe/go/pkg/mod/github.com/go-gl/glfw/v3.3/[email protected]/input.go:394 +0x1c
fyne.io/fyne/v2/internal/driver/glfw.(*window).processMouseMoved(0xc000488000, 0xc00105dc7c?, 0x559?)
C:/Users/roffe/go/pkg/mod/fyne.io/fyne/[email protected]/internal/driver/glfw/window.go:353 +0x217
Roffe's Guide to Setting Up Go and C Compiler on Windows for Fyne Development ( but you really want to use something other than Fyne )
This guide assumes you do not already have other C compilers installed in the system that will interfere with the setup below.
!! LLVM 21.x has a bug that generates invalid object files, the last known working version is 20.1.8. The bug will be fixed once llvm 21.1.3 is released !!
1. Install Go from https://go.dev/doc/install (I installed in C:\Go; any path is fine but adjust steps below accordingly)
2. Download llvm-mingw from https://github.com/mstorsjo/llvm-mingw/releases (As of writing this doc, I used llvm-mingw-20250709-ucrt-x86_64.zip
package main
import (
"crypto/hmac"
"crypto/sha256"
"encoding/base64"
"fmt"
)
func main() {
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: imaginary
spec:
rules:
- host: imaginary.domain.com
http:
paths:
---
apiVersion: v1
kind: Service
metadata:
name: imaginary
labels:
app: imaginary
spec:
ports:
- port: 9000
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: imaginary
spec:
selector:
matchLabels:
app: imaginary
replicas: 1
@roffe
roffe / index.html
Created October 5, 2018 17:53
Matrix rain animation using HTML5 canvas and javascript
<canvas id="c"></canvas>