Skip to content

Instantly share code, notes, and snippets.

View 1xch's full-sized avatar
⛈️
head in the clouds

1xch

⛈️
head in the clouds
  • laughs-in-flowers
View GitHub Profile
package main
import (
"image"
"image/color"
"math"
mr "math/rand"
"time"
m "github.com/go-gl/mathgl/mgl64"
package cosmic
import (
"fmt"
"math"
"math/rand"
"time"
cr "github.com/Laughs-In-Flowers/ifriit/lib/art/color"
"github.com/Laughs-In-Flowers/ifriit/lib/art/image"
@1xch
1xch / file_open.go
Created February 27, 2019 15:43
my goto file open in go
import (
"github.com/Laughs-In-Flowers/xrr"
)
func openFile(path string) (*os.File, error) {
p := filepath.Clean(path)
dir, name := filepath.Split(p)
var fp string