aboutsummaryrefslogtreecommitdiff
path: root/client.go
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2024-09-08 14:01:33 +0700
committerShulhan <ms@kilabit.info>2024-09-08 14:01:33 +0700
commit9cdbccc13eb68e6d2c0067a009416f0e766dccc8 (patch)
tree09ceb2f6ce72af9fb9581e11628e620298064436 /client.go
parent4905270d02431c5a431fe33491893803c373be5c (diff)
downloadkbbi-9cdbccc13eb68e6d2c0067a009416f0e766dccc8.tar.xz
all: realign some struct for compact layout
Changes, * struct Client realigned from 56 to 40 bytes (-16) * struct Word realigned from 72 to 56 bytes (-16) * anonymous struct in test realigned from 40 to 32 bytes (-8)
Diffstat (limited to 'client.go')
-rw-r--r--client.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/client.go b/client.go
index 39dd031..ff30e73 100644
--- a/client.go
+++ b/client.go
@@ -64,10 +64,10 @@ const (
// Client for official KBBI web using HTTP.
type Client struct {
- baseDir string
+ httpc *http.Client
cookieURL *url.URL
+ baseDir string
cookies []*http.Cookie
- httpc *http.Client
}
// NewClient create and initialize new client that connect directly to