Skip to content

Commit

Permalink
Merge pull request #2 from ObrienlabsDev/GO-1
Browse files Browse the repository at this point in the history
#1 - initial go framework
  • Loading branch information
obriensystems authored Nov 8, 2024
2 parents af4c001 + a65294d commit 7ece8f8
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 18 deletions.
13 changes: 5 additions & 8 deletions src/go.mod
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
module hello
module server

go 1.22.5
go 1.23.2

//require rsc.io/quote v1.5.2

//#require (
// golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c // indirect
// rsc.io/sampler v1.3.0 // indirect
//)
require (
//golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c // indirect
)
6 changes: 6 additions & 0 deletions src/go.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c h1:qgOY6WgZOaTkIIMiVjBQcw93ERBE4m30iBm00nkL0i8=
golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
rsc.io/quote v1.5.2 h1:w5fcysjrx7yqtD/aO+QwRjYZOKnaM9Uh2b40tElTs3Y=
rsc.io/quote v1.5.2/go.mod h1:LzX7hefJvL54yjefDEDHNONDjII0t9xZLPXsUe+TKr0=
rsc.io/sampler v1.3.0 h1:7uVkIFmeBqHfdjD+gZwtXXI+RODJ2Wc4O7MPEh/QiW4=
rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA=
9 changes: 0 additions & 9 deletions src/hello.go

This file was deleted.

Binary file added src/main
Binary file not shown.
2 changes: 1 addition & 1 deletion src/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import (

func handler(w http.ResponseWriter, r *http.Request) {
fmt.Fprintf(w, "Hello, World from Go!\n")

}

func main() {
fmt.Println("server started")
http.HandleFunc("/", handler)
log.Fatal(http.ListenAndServe(":8080", nil))
}

0 comments on commit 7ece8f8

Please sign in to comment.