Live video on the AT Protocol
79
fork

Configure Feed

Select the types of activity you want to include in your feed.

at eli/problem-detection 29 lines 436 B view raw
1package main 2 3// package to generate a uuidv7 at build time for the packaged Expo app 4 5import ( 6 "flag" 7 "fmt" 8 "os" 9 10 "github.com/google/uuid" 11) 12 13func main() { 14 u, err := uuid.NewV7() 15 if err != nil { 16 panic(err) 17 } 18 19 output := flag.String("o", "", "file to output to") 20 21 flag.Parse() 22 if *output != "" { 23 if err := os.WriteFile(*output, []byte(u.String()), 0644); err != nil { 24 panic(err) 25 } 26 } else { 27 fmt.Printf("%s", u) 28 } 29}