Skip to content

Commit

Permalink
Gofmt cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniele Rondina committed May 11, 2023
1 parent aa79eff commit adec6b1
Show file tree
Hide file tree
Showing 45 changed files with 10 additions and 90 deletions.
2 changes: 0 additions & 2 deletions cmd/apply.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/*
Copyright (C) 2020-2022 Daniele Rondina <geaaru@funtoo.org>
Credits goes also to Gogs authors, some code portions and re-implemented design
are also coming from the Gogs project, which is using the go-macaron framework
Expand All @@ -17,7 +16,6 @@ GNU General Public License for more details.:s
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package cmd

Expand Down
2 changes: 0 additions & 2 deletions cmd/command.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/*
Copyright (C) 2020-2021 Daniele Rondina <geaaru@sabayonlinux.org>
Credits goes also to Gogs authors, some code portions and re-implemented design
are also coming from the Gogs project, which is using the go-macaron framework
Expand All @@ -17,7 +16,6 @@ GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package cmd

Expand Down
2 changes: 0 additions & 2 deletions cmd/command/list.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/*
Copyright (C) 2020-2021 Daniele Rondina <geaaru@sabayonlinux.org>
Credits goes also to Gogs authors, some code portions and re-implemented design
are also coming from the Gogs project, which is using the go-macaron framework
Expand All @@ -17,7 +16,6 @@ GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package cmd_command

Expand Down
2 changes: 0 additions & 2 deletions cmd/command/run.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/*
Copyright (C) 2020-2021 Daniele Rondina <geaaru@sabayonlinux.org>
Credits goes also to Gogs authors, some code portions and re-implemented design
are also coming from the Gogs project, which is using the go-macaron framework
Expand All @@ -17,7 +16,6 @@ GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package cmd_command

Expand Down
2 changes: 0 additions & 2 deletions cmd/compile.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/*
Copyright (C) 2020-2022 Daniele Rondina <geaaru@funtoo.org>
Credits goes also to Gogs authors, some code portions and re-implemented design
are also coming from the Gogs project, which is using the go-macaron framework
Expand All @@ -17,7 +16,6 @@ GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package cmd

Expand Down
2 changes: 0 additions & 2 deletions cmd/destroy.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/*
Copyright (C) 2020-2022 Daniele Rondina <geaaru@sabayonlinux.org>
Credits goes also to Gogs authors, some code portions and re-implemented design
are also coming from the Gogs project, which is using the go-macaron framework
Expand All @@ -17,7 +16,6 @@ GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package cmd

Expand Down
2 changes: 0 additions & 2 deletions cmd/diagnose.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/*
Copyright (C) 2020 Daniele Rondina <geaaru@sabayonlinux.org>
Credits goes also to Gogs authors, some code portions and re-implemented design
are also coming from the Gogs project, which is using the go-macaron framework
Expand All @@ -17,7 +16,6 @@ GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package cmd

Expand Down
2 changes: 0 additions & 2 deletions cmd/diagnose/vars.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/*
Copyright (C) 2020 Daniele Rondina <geaaru@sabayonlinux.org>
Credits goes also to Gogs authors, some code portions and re-implemented design
are also coming from the Gogs project, which is using the go-macaron framework
Expand All @@ -17,7 +16,6 @@ GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package cmd_diagnose

Expand Down
2 changes: 0 additions & 2 deletions cmd/group.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/*
Copyright (C) 2020-2021 Daniele Rondina <geaaru@sabayonlinux.org>
Credits goes also to Gogs authors, some code portions and re-implemented design
are also coming from the Gogs project, which is using the go-macaron framework
Expand All @@ -17,7 +16,6 @@ GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package cmd

Expand Down
2 changes: 0 additions & 2 deletions cmd/group/list.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/*
Copyright (C) 2020-2021 Daniele Rondina <geaaru@sabayonlinux.org>
Credits goes also to Gogs authors, some code portions and re-implemented design
are also coming from the Gogs project, which is using the go-macaron framework
Expand All @@ -17,7 +16,6 @@ GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package cmd_group

Expand Down
2 changes: 0 additions & 2 deletions cmd/network.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/*
Copyright (C) 2020 Daniele Rondina <geaaru@sabayonlinux.org>
Credits goes also to Gogs authors, some code portions and re-implemented design
are also coming from the Gogs project, which is using the go-macaron framework
Expand All @@ -17,7 +16,6 @@ GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package cmd

Expand Down
2 changes: 0 additions & 2 deletions cmd/network/list.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/*
Copyright (C) 2020-2021 Daniele Rondina <geaaru@sabayonlinux.org>
Credits goes also to Gogs authors, some code portions and re-implemented design
are also coming from the Gogs project, which is using the go-macaron framework
Expand All @@ -17,7 +16,6 @@ GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package cmd_network

Expand Down
2 changes: 0 additions & 2 deletions cmd/node.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/*
Copyright (C) 2020 Daniele Rondina <geaaru@sabayonlinux.org>
Credits goes also to Gogs authors, some code portions and re-implemented design
are also coming from the Gogs project, which is using the go-macaron framework
Expand All @@ -17,7 +16,6 @@ GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package cmd

Expand Down
2 changes: 0 additions & 2 deletions cmd/node/create.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/*
Copyright (C) 2020 Daniele Rondina <geaaru@sabayonlinux.org>
Credits goes also to Gogs authors, some code portions and re-implemented design
are also coming from the Gogs project, which is using the go-macaron framework
Expand All @@ -17,7 +16,6 @@ GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package cmd_node

Expand Down
2 changes: 0 additions & 2 deletions cmd/node/exec.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/*
Copyright (C) 2020 Daniele Rondina <geaaru@sabayonlinux.org>
Credits goes also to Gogs authors, some code portions and re-implemented design
are also coming from the Gogs project, which is using the go-macaron framework
Expand All @@ -17,7 +16,6 @@ GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package cmd_node

Expand Down
2 changes: 0 additions & 2 deletions cmd/node/list.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/*
Copyright (C) 2020 Daniele Rondina <geaaru@sabayonlinux.org>
Credits goes also to Gogs authors, some code portions and re-implemented design
are also coming from the Gogs project, which is using the go-macaron framework
Expand All @@ -17,7 +16,6 @@ GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package cmd_node

Expand Down
2 changes: 0 additions & 2 deletions cmd/node/push.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/*
Copyright (C) 2020 Daniele Rondina <geaaru@sabayonlinux.org>
Credits goes also to Gogs authors, some code portions and re-implemented design
are also coming from the Gogs project, which is using the go-macaron framework
Expand All @@ -17,7 +16,6 @@ GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package cmd_node

Expand Down
2 changes: 0 additions & 2 deletions cmd/node/sync.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/*
Copyright (C) 2020 Daniele Rondina <geaaru@sabayonlinux.org>
Credits goes also to Gogs authors, some code portions and re-implemented design
are also coming from the Gogs project, which is using the go-macaron framework
Expand All @@ -17,7 +16,6 @@ GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package cmd_node

Expand Down
2 changes: 0 additions & 2 deletions cmd/print.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/*
Copyright (C) 2020 Daniele Rondina <geaaru@sabayonlinux.org>
Credits goes also to Gogs authors, some code portions and re-implemented design
are also coming from the Gogs project, which is using the go-macaron framework
Expand All @@ -17,7 +16,6 @@ GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package cmd

Expand Down
2 changes: 0 additions & 2 deletions cmd/profile.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/*
Copyright (C) 2020 Daniele Rondina <geaaru@sabayonlinux.org>
Credits goes also to Gogs authors, some code portions and re-implemented design
are also coming from the Gogs project, which is using the go-macaron framework
Expand All @@ -17,7 +16,6 @@ GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package cmd

Expand Down
2 changes: 0 additions & 2 deletions cmd/profile/create.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/*
Copyright (C) 2020 Daniele Rondina <geaaru@sabayonlinux.org>
Credits goes also to Gogs authors, some code portions and re-implemented design
are also coming from the Gogs project, which is using the go-macaron framework
Expand All @@ -17,7 +16,6 @@ GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package cmd_profile

Expand Down
2 changes: 0 additions & 2 deletions cmd/project.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/*
Copyright (C) 2020 Daniele Rondina <geaaru@sabayonlinux.org>
Credits goes also to Gogs authors, some code portions and re-implemented design
are also coming from the Gogs project, which is using the go-macaron framework
Expand All @@ -17,7 +16,6 @@ GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package cmd

Expand Down
2 changes: 0 additions & 2 deletions cmd/project/list.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/*
Copyright (C) 2020 Daniele Rondina <geaaru@sabayonlinux.org>
Credits goes also to Gogs authors, some code portions and re-implemented design
are also coming from the Gogs project, which is using the go-macaron framework
Expand All @@ -17,7 +16,6 @@ GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package cmd_diagnose

Expand Down
2 changes: 0 additions & 2 deletions cmd/storage/list.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/*
Copyright (C) 2020-2021 Daniele Rondina <geaaru@sabayonlinux.org>
Credits goes also to Gogs authors, some code portions and re-implemented design
are also coming from the Gogs project, which is using the go-macaron framework
Expand All @@ -17,7 +16,6 @@ GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package cmd_storage

Expand Down
2 changes: 0 additions & 2 deletions cmd/validate.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/*
Copyright (C) 2020 Daniele Rondina <geaaru@sabayonlinux.org>
Credits goes also to Gogs authors, some code portions and re-implemented design
are also coming from the Gogs project, which is using the go-macaron framework
Expand All @@ -17,7 +16,6 @@ GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package cmd

Expand Down
2 changes: 0 additions & 2 deletions lxd-compose.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/*
Copyright (C) 2020 Daniele Rondina <geaaru@sabayonlinux.org>
Credits goes also to Gogs authors, some code portions and re-implemented design
are also coming from the Gogs project, which is using the go-macaron framework
Expand All @@ -17,7 +16,6 @@ GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package main

Expand Down
8 changes: 4 additions & 4 deletions pkg/executor/acl.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func (e *LxdCExecutor) CreateACL(acl *specs.LxdCAcl) error {
}

if len(acl.Egress) > 0 {
for idx, _ := range acl.Egress {
for idx := range acl.Egress {
post.NetworkACLPut.Egress = append(
post.NetworkACLPut.Egress,
*e.aclRule2Lxd(&acl.Egress[idx]),
Expand All @@ -85,7 +85,7 @@ func (e *LxdCExecutor) CreateACL(acl *specs.LxdCAcl) error {
}

if len(acl.Ingress) > 0 {
for idx, _ := range acl.Ingress {
for idx := range acl.Ingress {
post.NetworkACLPut.Ingress = append(
post.NetworkACLPut.Ingress,
*e.aclRule2Lxd(&acl.Ingress[idx]),
Expand Down Expand Up @@ -117,7 +117,7 @@ func (e *LxdCExecutor) UpdateACL(acl *specs.LxdCAcl) error {
}

if len(acl.Egress) > 0 {
for idx, _ := range acl.Egress {
for idx := range acl.Egress {
put.Egress = append(
put.Egress,
*e.aclRule2Lxd(&acl.Egress[idx]),
Expand All @@ -126,7 +126,7 @@ func (e *LxdCExecutor) UpdateACL(acl *specs.LxdCAcl) error {
}

if len(acl.Ingress) > 0 {
for idx, _ := range acl.Ingress {
for idx := range acl.Ingress {
put.Ingress = append(
put.Ingress,
*e.aclRule2Lxd(&acl.Ingress[idx]),
Expand Down
Loading

0 comments on commit adec6b1

Please sign in to comment.