diff options
author | Brian Picciano <mediocregopher@gmail.com> | 2022-09-13 12:12:28 +0200 |
---|---|---|
committer | Brian Picciano <mediocregopher@gmail.com> | 2022-09-13 12:12:28 +0200 |
commit | b1641d1af92eca6e475ea76aaed21a5dab0df185 (patch) | |
tree | 147b3176683f3c7e88f9395d6b0c34d21fb71361 /srv/src/cmd/userid-calc-cli/main.go | |
parent | 1b3ca1af4b570921bc140988dde27cf938d44f68 (diff) |
remove chat functionality completely
Diffstat (limited to 'srv/src/cmd/userid-calc-cli/main.go')
-rw-r--r-- | srv/src/cmd/userid-calc-cli/main.go | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/srv/src/cmd/userid-calc-cli/main.go b/srv/src/cmd/userid-calc-cli/main.go deleted file mode 100644 index 90c44e7..0000000 --- a/srv/src/cmd/userid-calc-cli/main.go +++ /dev/null @@ -1,28 +0,0 @@ -package main - -import ( - "encoding/json" - "flag" - "fmt" - - "github.com/mediocregopher/blog.mediocregopher.com/srv/chat" -) - -func main() { - - secret := flag.String("secret", "", "Secret to use when calculating UserIDs") - name := flag.String("name", "", "") - password := flag.String("password", "", "") - - flag.Parse() - - calc := chat.NewUserIDCalculator([]byte(*secret)) - userID := calc.Calculate(*name, *password) - - b, err := json.Marshal(userID) - if err != nil { - panic(err) - } - - fmt.Println(string(b)) -} |