diff options
| author | Shulhan <ms@kilabit.info> | 2023-02-25 19:36:18 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2023-02-25 19:56:24 +0700 |
| commit | fee20f0aeb51113a995c8fe21ff1e34f4244eb8f (patch) | |
| tree | 79e25493dde2931cefa5fbb812717355bcef8cce /api | |
| parent | 4100f2dbd433ec885c3c9f5eb963ba98bb1ab1e4 (diff) | |
| download | pakakeh.go-fee20f0aeb51113a995c8fe21ff1e34f4244eb8f.tar.xz | |
all: access embedded field or methods using the type name
This is for clarity in the code, better to be explicit by typing where
the field or methods come from.
Diffstat (limited to 'api')
| -rw-r--r-- | api/slack/webhook_client.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api/slack/webhook_client.go b/api/slack/webhook_client.go index 166b5189..abff49bd 100644 --- a/api/slack/webhook_client.go +++ b/api/slack/webhook_client.go @@ -51,7 +51,7 @@ func (wcl *WebhookClient) Post(msg *Message) (err error) { if wcl.Client == nil { return nil } - httpRes, resBody, err := wcl.PostJSON(wcl.webhookPath, nil, msg) + httpRes, resBody, err := wcl.Client.PostJSON(wcl.webhookPath, nil, msg) if err != nil { return fmt.Errorf("WebhookClient.Post: %w", err) } |
