Skip to content

Instantly share code, notes, and snippets.

View DeadlySurgeon's full-sized avatar
💉

The Surgeon DeadlySurgeon

💉
View GitHub Profile
@DeadlySurgeon
DeadlySurgeon / Square.go
Created February 3, 2024 05:07
Just a colorful square.
package main
import (
"context"
"fmt"
"os"
"os/signal"
"strings"
"time"
@DeadlySurgeon
DeadlySurgeon / unmarshal.go
Last active July 1, 2024 18:59
Regex based unmarshaler
package main
import (
"encoding"
"fmt"
"reflect"
"regexp"
"strconv"
)
@DeadlySurgeon
DeadlySurgeon / d.go
Last active November 29, 2024 23:37
Pipe Connector in Go
package pipedialer
import (
"context"
"net"
"sync"
)
type RotaryPhone struct {
connLock sync.Mutex
package main
import (
"errors"
"fmt"
)
func main() {
err := wrong()
fmt.Println(As[*Aerror](err))