Skip to content

Instantly share code, notes, and snippets.

View HenriBeck's full-sized avatar
💭
💻

Henri Beck HenriBeck

💭
💻
View GitHub Profile
import 'package:flutter/material.dart';
void main() {
runApp(MaterialApp(
home: MyApp(),
));
}
class MyApp extends StatefulWidget {
@override
@HenriBeck
HenriBeck / Dockerfile
Last active August 4, 2021 19:28
Go DevContainer Setup
FROM golang:1.16-buster AS base
RUN apt-get update
RUN apt-get install software-properties-common git build-essential curl unzip nano -y
# Install global CLI tools
RUN go install -v golang.org/x/tools/[email protected]
RUN go install -v github.com/go-delve/delve/cmd/[email protected]
RUN go install -v github.com/ramya-rao-a/[email protected]
RUN go install -v github.com/uudashr/gopkgs/v2/cmd/gopkgs@latest
@HenriBeck
HenriBeck / future.go
Created July 20, 2023 19:57
Go Future
package asyncutils
import (
"context"
"fmt"
"log"
"runtime/debug"
)
// A Future is a task which starts but doesn't block the current thread since it's run in a goroutine.