Skip to content

Instantly share code, notes, and snippets.

View p0lyn0mial's full-sized avatar

Lukasz Szaszkiewicz p0lyn0mial

  • Red Hat, Inc
  • Gdansk, Poland
View GitHub Profile
@p0lyn0mial
p0lyn0mial / fn-pointers-go.txt
Created July 9, 2020 08:59
comparing function pointers in golang
the following is what I got when running https://github.com/p0lyn0mial/function-addr/blob/master/main.go with various versions of golang
==============================================================================================================
go1.13.12
==============================================================================================================
go version && go run main.go
go version go1.13.12 darwin/amd64
a
b
0x109b750
@p0lyn0mial
p0lyn0mial / exec_pod_k8s_client_go.go
Last active April 13, 2018 13:12
Shows how to exec into the pod using k8s client-go library
package main
import (
"flag"
"os"
"strings"
"github.com/golang/glog"
restclient "k8s.io/client-go/rest"
"k8s.io/client-go/tools/clientcmd"