Skip to content

Commit

Permalink
Refactored code to move into rest
Browse files Browse the repository at this point in the history
  • Loading branch information
bhanurp committed Jul 13, 2024
1 parent 7ea84c9 commit 75d0076
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion client/client.go → client.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package client
package rest

// NewClient creates a new Client struct with the provided URL and headers.
// the default timeout is 30 seconds
Expand Down
2 changes: 1 addition & 1 deletion client/delete.go → delete.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package client
package rest

import (
"net/http"
Expand Down
2 changes: 1 addition & 1 deletion client/get.go → get.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package client
package rest

import (
"net/http"
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module github.com/bhanurp/rest

go 1.22
go 1.22.5
2 changes: 1 addition & 1 deletion client/utils.go → methodutils.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package client
package rest

import (
"io"
Expand Down
2 changes: 1 addition & 1 deletion client/post.go → post.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package client
package rest

import (
"bytes"
Expand Down
2 changes: 1 addition & 1 deletion client/put.go → put.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package client
package rest

import (
"bytes"
Expand Down
2 changes: 1 addition & 1 deletion client/types.go → types.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package client
package rest

type Client struct {
URL string
Expand Down

0 comments on commit 75d0076

Please sign in to comment.