From a90ed0c4c647785e105f8577c9bf886ee4f14259 Mon Sep 17 00:00:00 2001 From: "v.veselskiy" Date: Mon, 27 Jan 2025 12:35:40 +0300 Subject: [PATCH] Add NewClient(). --- client.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/client.go b/client.go index 5ab7e4b..d00e386 100644 --- a/client.go +++ b/client.go @@ -3,3 +3,9 @@ package push_client type Client struct { Addr string } + +func NewClient(addr string) *Client { + return &Client{ + Addr: addr, + } +}