Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1 from steko/master
Browse files Browse the repository at this point in the history
Switch to github import path for uuid and to maintained QR Code library
  • Loading branch information
sawanoboly committed Feb 6, 2016
2 parents 4a85652 + ea97458 commit e2e308e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Gomfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
gom "code.google.com/p/go-uuid/uuid"
gom "code.google.com/p/rsc/qr"
gom "github.com/pborman/uuid"
gom "github.com/skip2/go-qrcode"
7 changes: 3 additions & 4 deletions main.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package main

import (
"code.google.com/p/go-uuid/uuid"
"code.google.com/p/rsc/qr"
"github.com/pborman/uuid"
qrcode "github.com/skip2/go-qrcode"
"flag"
"fmt"
"io/ioutil"
Expand All @@ -19,8 +19,7 @@ func main() {
}

text := uuid.New()
data, _ := qr.Encode(text, qr.H)
content := data.PNG()
content, _ := qrcode.Encode(text, qrcode.High, 256)
fmt.Println(text)
ioutil.WriteFile(text+".png", content, 0644)
}

0 comments on commit e2e308e

Please sign in to comment.