From c163802db320d2695cf8d0367252e4b190103b52 Mon Sep 17 00:00:00 2001 From: pSox Date: Fri, 18 Nov 2022 09:02:04 +0000 Subject: [PATCH] update comment formatting --- adapter-http.go | 30 ++++++++++++++++-------------- adapter-socket.go | 38 ++++++++++++++++++++------------------ adapter.go | 30 ++++++++++++++++-------------- attribute.go | 30 ++++++++++++++++-------------- attribute_test.go | 30 ++++++++++++++++-------------- constants.go | 30 ++++++++++++++++-------------- cups-client.go | 30 ++++++++++++++++-------------- error.go | 30 ++++++++++++++++-------------- ipp-client.go | 30 ++++++++++++++++-------------- request.go | 30 ++++++++++++++++-------------- response.go | 30 ++++++++++++++++-------------- utils.go | 30 ++++++++++++++++-------------- 12 files changed, 196 insertions(+), 172 deletions(-) diff --git a/adapter-http.go b/adapter-http.go index 927e03b..fdec1c4 100644 --- a/adapter-http.go +++ b/adapter-http.go @@ -1,18 +1,20 @@ /* - Copyright 2022 Dolysis Consulting Limited - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - For changes see the git log -*/ +** Copyright 2022 Dolysis Consulting Limited +** +** Licensed under the Apache License, Version 2.0 (the "License"); +** you may not use this file except in compliance with the License. +** You may obtain a copy of the License at +** +** http://www.apache.org/licenses/LICENSE-2.0 +** +** Unless required by applicable law or agreed to in writing, software +** distributed under the License is distributed on an "AS IS" BASIS, +** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +** See the License for the specific language governing permissions and +** limitations under the License. +** +** For changes see the git log + */ package ipp import ( diff --git a/adapter-socket.go b/adapter-socket.go index 4c3b036..f634395 100644 --- a/adapter-socket.go +++ b/adapter-socket.go @@ -1,18 +1,20 @@ /* - Copyright 2022 Dolysis Consulting Limited - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - For changes see the git log -*/ +** Copyright 2022 Dolysis Consulting Limited +** +** Licensed under the Apache License, Version 2.0 (the "License"); +** you may not use this file except in compliance with the License. +** You may obtain a copy of the License at +** +** http://www.apache.org/licenses/LICENSE-2.0 +** +** Unless required by applicable law or agreed to in writing, software +** distributed under the License is distributed on an "AS IS" BASIS, +** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +** See the License for the specific language governing permissions and +** limitations under the License. +** +** For changes see the git log + */ package ipp import ( @@ -56,8 +58,8 @@ func NewSocketAdapter(host string, useTLS bool) *SocketAdapter { } } -//DoRequest performs the given IPP request to the given URL, returning the IPP response or an error if one occurred. -//Additional data will be written to an io.Writer if additionalData is not nil +// DoRequest performs the given IPP request to the given URL, returning the IPP response or an error if one occurred. +// Additional data will be written to an io.Writer if additionalData is not nil func (h *SocketAdapter) SendRequest(url string, r *Request, additionalData io.Writer) (*Response, error) { for i := 0; i < h.RequestRetryLimit; i++ { // encode request @@ -147,7 +149,7 @@ func (h *SocketAdapter) SendRequest(url string, r *Request, additionalData io.Wr return nil, errors.New("request retry limit exceeded") } -//GetSocket returns the path to the cupsd socket by searching SocketSearchPaths +// GetSocket returns the path to the cupsd socket by searching SocketSearchPaths func (h *SocketAdapter) GetSocket() (string, error) { for _, path := range h.SocketSearchPaths { fi, err := os.Stat(path) @@ -168,7 +170,7 @@ func (h *SocketAdapter) GetSocket() (string, error) { return "", SocketNotFoundError } -//GetCert returns the current CUPs authentication certificate by searching CertSearchPaths +// GetCert returns the current CUPs authentication certificate by searching CertSearchPaths func (h *SocketAdapter) GetCert() (string, error) { for _, path := range h.CertSearchPaths { f, err := os.Open(path) diff --git a/adapter.go b/adapter.go index 881a263..2ab124a 100644 --- a/adapter.go +++ b/adapter.go @@ -1,18 +1,20 @@ /* - Copyright 2022 Dolysis Consulting Limited - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - For changes see the git log -*/ +** Copyright 2022 Dolysis Consulting Limited +** +** Licensed under the Apache License, Version 2.0 (the "License"); +** you may not use this file except in compliance with the License. +** You may obtain a copy of the License at +** +** http://www.apache.org/licenses/LICENSE-2.0 +** +** Unless required by applicable law or agreed to in writing, software +** distributed under the License is distributed on an "AS IS" BASIS, +** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +** See the License for the specific language governing permissions and +** limitations under the License. +** +** For changes see the git log + */ package ipp import "io" diff --git a/attribute.go b/attribute.go index 1496539..5385e07 100644 --- a/attribute.go +++ b/attribute.go @@ -1,18 +1,20 @@ /* - Copyright 2022 Dolysis Consulting Limited - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - For changes see the git log -*/ +** Copyright 2022 Dolysis Consulting Limited +** +** Licensed under the Apache License, Version 2.0 (the "License"); +** you may not use this file except in compliance with the License. +** You may obtain a copy of the License at +** +** http://www.apache.org/licenses/LICENSE-2.0 +** +** Unless required by applicable law or agreed to in writing, software +** distributed under the License is distributed on an "AS IS" BASIS, +** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +** See the License for the specific language governing permissions and +** limitations under the License. +** +** For changes see the git log + */ package ipp import ( diff --git a/attribute_test.go b/attribute_test.go index 48a5d9f..12e7042 100644 --- a/attribute_test.go +++ b/attribute_test.go @@ -1,18 +1,20 @@ /* - Copyright 2022 Dolysis Consulting Limited - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - For changes see the git log -*/ +** Copyright 2022 Dolysis Consulting Limited +** +** Licensed under the Apache License, Version 2.0 (the "License"); +** you may not use this file except in compliance with the License. +** You may obtain a copy of the License at +** +** http://www.apache.org/licenses/LICENSE-2.0 +** +** Unless required by applicable law or agreed to in writing, software +** distributed under the License is distributed on an "AS IS" BASIS, +** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +** See the License for the specific language governing permissions and +** limitations under the License. +** +** For changes see the git log + */ package ipp import ( diff --git a/constants.go b/constants.go index c358f15..402dfce 100644 --- a/constants.go +++ b/constants.go @@ -1,18 +1,20 @@ /* - Copyright 2022 Dolysis Consulting Limited - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - For changes see the git log -*/ +** Copyright 2022 Dolysis Consulting Limited +** +** Licensed under the Apache License, Version 2.0 (the "License"); +** you may not use this file except in compliance with the License. +** You may obtain a copy of the License at +** +** http://www.apache.org/licenses/LICENSE-2.0 +** +** Unless required by applicable law or agreed to in writing, software +** distributed under the License is distributed on an "AS IS" BASIS, +** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +** See the License for the specific language governing permissions and +** limitations under the License. +** +** For changes see the git log + */ package ipp // ipp status codes diff --git a/cups-client.go b/cups-client.go index e4f208c..47e4a0b 100644 --- a/cups-client.go +++ b/cups-client.go @@ -1,18 +1,20 @@ /* - Copyright 2022 Dolysis Consulting Limited - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - For changes see the git log -*/ +** Copyright 2022 Dolysis Consulting Limited +** +** Licensed under the Apache License, Version 2.0 (the "License"); +** you may not use this file except in compliance with the License. +** You may obtain a copy of the License at +** +** http://www.apache.org/licenses/LICENSE-2.0 +** +** Unless required by applicable law or agreed to in writing, software +** distributed under the License is distributed on an "AS IS" BASIS, +** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +** See the License for the specific language governing permissions and +** limitations under the License. +** +** For changes see the git log + */ package ipp import ( diff --git a/error.go b/error.go index 9221abb..c1ab490 100644 --- a/error.go +++ b/error.go @@ -1,18 +1,20 @@ /* - Copyright 2022 Dolysis Consulting Limited - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - For changes see the git log -*/ +** Copyright 2022 Dolysis Consulting Limited +** +** Licensed under the Apache License, Version 2.0 (the "License"); +** you may not use this file except in compliance with the License. +** You may obtain a copy of the License at +** +** http://www.apache.org/licenses/LICENSE-2.0 +** +** Unless required by applicable law or agreed to in writing, software +** distributed under the License is distributed on an "AS IS" BASIS, +** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +** See the License for the specific language governing permissions and +** limitations under the License. +** +** For changes see the git log + */ package ipp import "fmt" diff --git a/ipp-client.go b/ipp-client.go index b0d25cc..393153a 100644 --- a/ipp-client.go +++ b/ipp-client.go @@ -1,18 +1,20 @@ /* - Copyright 2022 Dolysis Consulting Limited - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - For changes see the git log -*/ +** Copyright 2022 Dolysis Consulting Limited +** +** Licensed under the Apache License, Version 2.0 (the "License"); +** you may not use this file except in compliance with the License. +** You may obtain a copy of the License at +** +** http://www.apache.org/licenses/LICENSE-2.0 +** +** Unless required by applicable law or agreed to in writing, software +** distributed under the License is distributed on an "AS IS" BASIS, +** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +** See the License for the specific language governing permissions and +** limitations under the License. +** +** For changes see the git log + */ package ipp import ( diff --git a/request.go b/request.go index 3c0e516..0624e97 100644 --- a/request.go +++ b/request.go @@ -1,18 +1,20 @@ /* - Copyright 2022 Dolysis Consulting Limited - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - For changes see the git log -*/ +** Copyright 2022 Dolysis Consulting Limited +** +** Licensed under the Apache License, Version 2.0 (the "License"); +** you may not use this file except in compliance with the License. +** You may obtain a copy of the License at +** +** http://www.apache.org/licenses/LICENSE-2.0 +** +** Unless required by applicable law or agreed to in writing, software +** distributed under the License is distributed on an "AS IS" BASIS, +** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +** See the License for the specific language governing permissions and +** limitations under the License. +** +** For changes see the git log + */ package ipp import ( diff --git a/response.go b/response.go index e775b59..7bd1d6d 100644 --- a/response.go +++ b/response.go @@ -1,18 +1,20 @@ /* - Copyright 2022 Dolysis Consulting Limited - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - For changes see the git log -*/ +** Copyright 2022 Dolysis Consulting Limited +** +** Licensed under the Apache License, Version 2.0 (the "License"); +** you may not use this file except in compliance with the License. +** You may obtain a copy of the License at +** +** http://www.apache.org/licenses/LICENSE-2.0 +** +** Unless required by applicable law or agreed to in writing, software +** distributed under the License is distributed on an "AS IS" BASIS, +** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +** See the License for the specific language governing permissions and +** limitations under the License. +** +** For changes see the git log + */ package ipp import ( diff --git a/utils.go b/utils.go index b2fa873..bbca334 100644 --- a/utils.go +++ b/utils.go @@ -1,18 +1,20 @@ /* - Copyright 2022 Dolysis Consulting Limited - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - For changes see the git log -*/ +** Copyright 2022 Dolysis Consulting Limited +** +** Licensed under the Apache License, Version 2.0 (the "License"); +** you may not use this file except in compliance with the License. +** You may obtain a copy of the License at +** +** http://www.apache.org/licenses/LICENSE-2.0 +** +** Unless required by applicable law or agreed to in writing, software +** distributed under the License is distributed on an "AS IS" BASIS, +** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +** See the License for the specific language governing permissions and +** limitations under the License. +** +** For changes see the git log + */ package ipp import (