File tree Expand file tree Collapse file tree 11 files changed +14
-14
lines changed
generator/src/main/resources/line-bot-sdk-go-generator Expand file tree Collapse file tree 11 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -94,15 +94,15 @@ func (client *{{ classname }}) Url(endpointPath string) string {
9494 return u.String()
9595}
9696
97- // WithHTTPClient function
97+ // With{{ classname contains "Blob" ? "Blob" : "" }}HTTPClient function
9898func With{{ classname contains "Blob" ? "Blob" : "" }}HTTPClient(c *http.Client) {{classname}}Option {
9999 return func(client *{{ classname }}) error {
100100 client.httpClient = c
101101 return nil
102102 }
103103}
104104
105- // WithEndpointClient function
105+ // With{{ classname contains "Blob" ? "Blob" : "" }}Endpoint function
106106func With{{ classname contains "Blob" ? "Blob" : "" }}Endpoint(endpoint string) {{classname}}Option {
107107 return func(client *{{ classname }}) error {
108108 u, err := url.ParseRequestURI(endpoint)
Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ func WithHTTPClient(c *http.Client) ChannelAccessTokenAPIOption {
9292 }
9393}
9494
95- // WithEndpointClient function
95+ // WithEndpoint function
9696func WithEndpoint (endpoint string ) ChannelAccessTokenAPIOption {
9797 return func (client * ChannelAccessTokenAPI ) error {
9898 u , err := url .ParseRequestURI (endpoint )
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ func WithHTTPClient(c *http.Client) InsightAPIOption {
102102 }
103103}
104104
105- // WithEndpointClient function
105+ // WithEndpoint function
106106func WithEndpoint (endpoint string ) InsightAPIOption {
107107 return func (client * InsightAPI ) error {
108108 u , err := url .ParseRequestURI (endpoint )
Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ func WithHTTPClient(c *http.Client) LiffAPIOption {
103103 }
104104}
105105
106- // WithEndpointClient function
106+ // WithEndpoint function
107107func WithEndpoint (endpoint string ) LiffAPIOption {
108108 return func (client * LiffAPI ) error {
109109 u , err := url .ParseRequestURI (endpoint )
Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ func WithHTTPClient(c *http.Client) ManageAudienceAPIOption {
104104 }
105105}
106106
107- // WithEndpointClient function
107+ // WithEndpoint function
108108func WithEndpoint (endpoint string ) ManageAudienceAPIOption {
109109 return func (client * ManageAudienceAPI ) error {
110110 u , err := url .ParseRequestURI (endpoint )
Original file line number Diff line number Diff line change @@ -97,15 +97,15 @@ func (client *ManageAudienceBlobAPI) Url(endpointPath string) string {
9797 return u .String ()
9898}
9999
100- // WithHTTPClient function
100+ // WithBlobHTTPClient function
101101func WithBlobHTTPClient (c * http.Client ) ManageAudienceBlobAPIOption {
102102 return func (client * ManageAudienceBlobAPI ) error {
103103 client .httpClient = c
104104 return nil
105105 }
106106}
107107
108- // WithEndpointClient function
108+ // WithBlobEndpoint function
109109func WithBlobEndpoint (endpoint string ) ManageAudienceBlobAPIOption {
110110 return func (client * ManageAudienceBlobAPI ) error {
111111 u , err := url .ParseRequestURI (endpoint )
Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ func WithHTTPClient(c *http.Client) MessagingApiAPIOption {
104104 }
105105}
106106
107- // WithEndpointClient function
107+ // WithEndpoint function
108108func WithEndpoint (endpoint string ) MessagingApiAPIOption {
109109 return func (client * MessagingApiAPI ) error {
110110 u , err := url .ParseRequestURI (endpoint )
Original file line number Diff line number Diff line change @@ -95,15 +95,15 @@ func (client *MessagingApiBlobAPI) Url(endpointPath string) string {
9595 return u .String ()
9696}
9797
98- // WithHTTPClient function
98+ // WithBlobHTTPClient function
9999func WithBlobHTTPClient (c * http.Client ) MessagingApiBlobAPIOption {
100100 return func (client * MessagingApiBlobAPI ) error {
101101 client .httpClient = c
102102 return nil
103103 }
104104}
105105
106- // WithEndpointClient function
106+ // WithBlobEndpoint function
107107func WithBlobEndpoint (endpoint string ) MessagingApiBlobAPIOption {
108108 return func (client * MessagingApiBlobAPI ) error {
109109 u , err := url .ParseRequestURI (endpoint )
Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ func WithHTTPClient(c *http.Client) LineModuleAPIOption {
104104 }
105105}
106106
107- // WithEndpointClient function
107+ // WithEndpoint function
108108func WithEndpoint (endpoint string ) LineModuleAPIOption {
109109 return func (client * LineModuleAPI ) error {
110110 u , err := url .ParseRequestURI (endpoint )
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ func WithHTTPClient(c *http.Client) LineModuleAttachAPIOption {
102102 }
103103}
104104
105- // WithEndpointClient function
105+ // WithEndpoint function
106106func WithEndpoint (endpoint string ) LineModuleAttachAPIOption {
107107 return func (client * LineModuleAttachAPI ) error {
108108 u , err := url .ParseRequestURI (endpoint )
You can’t perform that action at this time.
0 commit comments