Skip to content

Instantly share code, notes, and snippets.

View senorprogrammer's full-sized avatar
🇨🇦
Hackety hack

Chris Cummer senorprogrammer

🇨🇦
Hackety hack
View GitHub Profile
@senorprogrammer
senorprogrammer / emoji_fun.go
Created December 13, 2019 00:17
Fun with emoji string lengths
package main
import (
"fmt"
"unicode/utf8"
"github.com/rivo/uniseg"
)
func main() {
@senorprogrammer
senorprogrammer / golang_time.go
Created March 1, 2020 12:06
Golang Time fun
package main
import (
"fmt"
"time"
)
func TimeIn(t time.Time, name string) (time.Time, error) {
loc, err := time.LoadLocation(name)
if err == nil {
package main
import (
"bytes"
"fmt"
"log"
"os/exec"
)
func main() {