Skip to content

Commit cac7fb1

Browse files
authored
Cleanup (#277)
Some cleanup of imports, headers, licences, etc.
1 parent 6a03f2e commit cac7fb1

31 files changed

+132
-52
lines changed

cli/cli.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@
1414
//
1515
// This file is part of The Money Gopher.
1616

17-
// repl provides a simple Read-Eval-Print-Loop (REPL) to issue commands to an
18-
// integrated client.
17+
// cli provides the commands for a simple CLI.
1918
package cli
2019

2120
import (

cli/commands/account.go

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,29 @@
1+
// Copyright 2023 Christian Banse
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
//
15+
// This file is part of The Money Gopher.
16+
117
package commands
218

319
import (
420
"context"
521
"fmt"
622

7-
"connectrpc.com/connect"
823
"github.com/oxisto/money-gopher/cli"
924
portfoliov1 "github.com/oxisto/money-gopher/gen"
25+
26+
"connectrpc.com/connect"
1027
)
1128

1229
type BankAccountCmd struct {

cli/commands/portfolio.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ import (
2525
"strings"
2626
"time"
2727

28-
"github.com/fatih/color"
29-
kongcompletion "github.com/jotaen/kong-completion"
3028
"github.com/oxisto/money-gopher/cli"
3129
portfoliov1 "github.com/oxisto/money-gopher/gen"
3230
"github.com/oxisto/money-gopher/gen/portfoliov1connect"
33-
"github.com/posener/complete"
34-
"google.golang.org/protobuf/types/known/timestamppb"
3531

3632
"connectrpc.com/connect"
33+
"github.com/fatih/color"
34+
kongcompletion "github.com/jotaen/kong-completion"
35+
"github.com/posener/complete"
36+
"google.golang.org/protobuf/types/known/timestamppb"
3737
)
3838

3939
type PortfolioCmd struct {

cli/commands/securities.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ import (
2222
"fmt"
2323
"net/http"
2424

25-
"connectrpc.com/connect"
26-
kongcompletion "github.com/jotaen/kong-completion"
27-
"github.com/posener/complete"
28-
2925
"github.com/oxisto/money-gopher/cli"
3026
portfoliov1 "github.com/oxisto/money-gopher/gen"
3127
"github.com/oxisto/money-gopher/gen/portfoliov1connect"
28+
29+
"connectrpc.com/connect"
30+
kongcompletion "github.com/jotaen/kong-completion"
31+
"github.com/posener/complete"
3232
)
3333

3434
type SecurityCmd struct {

cmd/mgo/mgo.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ package main
1919
import (
2020
"os"
2121

22-
"github.com/alecthomas/kong"
23-
kongcompletion "github.com/jotaen/kong-completion"
24-
2522
"github.com/oxisto/money-gopher/cli"
2623
"github.com/oxisto/money-gopher/cli/commands"
24+
25+
"github.com/alecthomas/kong"
26+
kongcompletion "github.com/jotaen/kong-completion"
2727
)
2828

2929
func main() {

finance/calculation.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
//
1515
// This file is part of The Money Gopher.
1616

17-
// package portfolio contains all kinds of different finance calculations.
17+
// package finance contains all kinds of different finance calculations.
1818
package finance
1919

2020
import (

finance/calculation_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,15 @@
1414
//
1515
// This file is part of The Money Gopher.
1616

17-
// package portfolio contains all kinds of different finance calculations.
17+
// package finance contains all kinds of different finance calculations.
1818
package finance
1919

2020
import (
2121
"testing"
2222

23-
"github.com/oxisto/assert"
2423
portfoliov1 "github.com/oxisto/money-gopher/gen"
24+
25+
"github.com/oxisto/assert"
2526
)
2627

2728
func TestNewCalculation(t *testing.T) {

gen/account_sql.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
// limitations under the License.
1414
//
1515
// This file is part of The Money Gopher.
16+
1617
package portfoliov1
1718

1819
import (

gen/currency.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
// limitations under the License.
1414
//
1515
// This file is part of The Money Gopher.
16+
1617
package portfoliov1
1718

1819
import (

gen/portfolio.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
// limitations under the License.
1414
//
1515
// This file is part of The Money Gopher.
16+
1617
package portfoliov1
1718

1819
import (

0 commit comments

Comments
 (0)