Skip to content

Instantly share code, notes, and snippets.

@poonai
Created August 14, 2022 13:39
Show Gist options
  • Save poonai/a3e4a82cb50e6d6fec55ca2b65a92a2c to your computer and use it in GitHub Desktop.
Save poonai/a3e4a82cb50e6d6fec55ca2b65a92a2c to your computer and use it in GitHub Desktop.
created using diffshare
diff --git a/.vscode/launch.json b/.vscode/launch.json
index 01f10d4..ef8af5d 100644
--- a/.vscode/launch.json
+++ b/.vscode/launch.json
@@ -6,7 +6,7 @@
"type": "go",
"request": "launch",
"mode": "debug",
- "program": "${workspaceFolder}/server.go"
+ "program": "${workspaceFolder}"
}
]
}
diff --git a/go.mod b/go.mod
index 7ce40cf..6cc0ad0 100644
--- a/go.mod
+++ b/go.mod
@@ -1,3 +1,17 @@
-module github.com/microsoft/vscode-remote-try-go
+module github.com/poonai/diffshare
go 1.14
+
+require (
+ github.com/atotto/clipboard v0.1.4 // indirect
+ github.com/charmbracelet/bubbles v0.13.0
+ github.com/charmbracelet/bubbletea v0.22.0
+ github.com/charmbracelet/lipgloss v0.5.0
+ github.com/cli/oauth v0.9.0
+ github.com/golang/protobuf v1.5.2
+ github.com/google/go-github v17.0.0+incompatible
+ github.com/google/go-querystring v1.1.0 // indirect
+ github.com/kirsle/configdir v0.0.0-20170128060238-e45d2f54772f
+ github.com/theckman/yacspin v0.13.12
+ golang.org/x/oauth2 v0.0.0-20220808172628-8227340efae7
+)
diff --git a/hello/hello.go b/hello/hello.go
deleted file mode 100644
index db44cd1..0000000
--- a/hello/hello.go
+++ /dev/null
@@ -1,22 +0,0 @@
-package hello
-
-// User user type
-type User struct {
- ID int64
- Name string
- Addr *Address
-}
-
-// Address address type
-type Address struct {
- City string
- ZIP int
- LatLng [2]float64
-}
-
-var alex = User{}
-
-// Hello writes a welcome string
-func Hello() string {
- return "Hello, " + alex.Name
-}
diff --git a/server.go b/server.go
deleted file mode 100644
index 28dbdb4..0000000
--- a/server.go
+++ /dev/null
@@ -1,25 +0,0 @@
-/*----------------------------------------------------------------------------------------
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See LICENSE in the project root for license information.
- *---------------------------------------------------------------------------------------*/
-
-package main
-
-import (
- "fmt"
- "io"
- "net/http"
-
- "github.com/microsoft/vscode-remote-try-go/hello"
-)
-
-func handle(w http.ResponseWriter, r *http.Request) {
- io.WriteString(w, hello.Hello())
-}
-
-func main() {
- portNumber := "9000"
- http.HandleFunc("/", handle)
- fmt.Println("Server listening on port ", portNumber)
- http.ListenAndServe(":"+portNumber, nil)
-}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment