Skip to content

Commit

Permalink
goimports -l -w .
Browse files Browse the repository at this point in the history
  • Loading branch information
aceld committed Apr 16, 2024
1 parent e0e9b81 commit 8d8e693
Show file tree
Hide file tree
Showing 40 changed files with 66 additions and 26 deletions.
1 change: 1 addition & 0 deletions config/kis_conn_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package config

import (
"fmt"

"github.com/aceld/kis-flow/common"
)

Expand Down
3 changes: 2 additions & 1 deletion conn/kis_connector.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ package conn

import (
"context"
"sync"

"github.com/aceld/kis-flow/common"
"github.com/aceld/kis-flow/config"
"github.com/aceld/kis-flow/id"
"github.com/aceld/kis-flow/kis"
"sync"
)

// KisConnector represents a KisConnector instance
Expand Down
3 changes: 2 additions & 1 deletion file/config_export.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ package file

import (
"fmt"
"os"

"github.com/aceld/kis-flow/common"
"github.com/aceld/kis-flow/kis"
"os"

"gopkg.in/yaml.v3"
)
Expand Down
7 changes: 4 additions & 3 deletions file/config_import.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@ package file

import (
"fmt"
"os"
"path"
"path/filepath"

"github.com/aceld/kis-flow/common"
"github.com/aceld/kis-flow/config"
"github.com/aceld/kis-flow/flow"
"github.com/aceld/kis-flow/kis"
"github.com/aceld/kis-flow/metrics"
"gopkg.in/yaml.v3"
"os"
"path"
"path/filepath"
)

type allConfig struct {
Expand Down
5 changes: 3 additions & 2 deletions flow/kis_flow.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ package flow
import (
"context"
"errors"
"sync"
"time"

"github.com/aceld/kis-flow/common"
"github.com/aceld/kis-flow/config"
"github.com/aceld/kis-flow/conn"
Expand All @@ -12,8 +15,6 @@ import (
"github.com/aceld/kis-flow/log"
"github.com/aceld/kis-flow/metrics"
"github.com/prometheus/client_golang/prometheus"
"sync"
"time"

"github.com/patrickmn/go-cache"
)
Expand Down
3 changes: 2 additions & 1 deletion function/kis_base_function.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ package function
import (
"context"
"errors"
"sync"

"github.com/aceld/kis-flow/common"
"github.com/aceld/kis-flow/config"
"github.com/aceld/kis-flow/id"
"github.com/aceld/kis-flow/kis"
"sync"
)

type BaseFunction struct {
Expand Down
1 change: 1 addition & 0 deletions function/kis_function_c.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package function

import (
"context"

"github.com/aceld/kis-flow/kis"
"github.com/aceld/kis-flow/log"
)
Expand Down
1 change: 1 addition & 0 deletions function/kis_function_e.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package function

import (
"context"

"github.com/aceld/kis-flow/kis"
"github.com/aceld/kis-flow/log"
)
Expand Down
1 change: 1 addition & 0 deletions function/kis_function_l.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package function

import (
"context"

"github.com/aceld/kis-flow/kis"
"github.com/aceld/kis-flow/log"
)
Expand Down
1 change: 1 addition & 0 deletions function/kis_function_s.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package function

import (
"context"

"github.com/aceld/kis-flow/kis"
"github.com/aceld/kis-flow/log"
)
Expand Down
1 change: 1 addition & 0 deletions function/kis_function_v.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package function

import (
"context"

"github.com/aceld/kis-flow/kis"
"github.com/aceld/kis-flow/log"
)
Expand Down
3 changes: 2 additions & 1 deletion id/kis_id.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package id

import (
"strings"

"github.com/aceld/kis-flow/common"
"github.com/google/uuid"
"strings"
)

// KisID generates a random instance ID.
Expand Down
3 changes: 2 additions & 1 deletion metrics/kis_metrics.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
package metrics

import (
"net/http"

"github.com/aceld/kis-flow/common"
"github.com/aceld/kis-flow/config"
"github.com/aceld/kis-flow/log"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promhttp"
"net/http"
)

// KisMetrics kisFlow's Prometheus monitoring metrics
Expand Down
1 change: 1 addition & 0 deletions test/caas/caas_demo1.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package caas
import (
"context"
"fmt"

"github.com/aceld/kis-flow/kis"
)

Expand Down
1 change: 1 addition & 0 deletions test/caas/caas_init1.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package caas

import (
"fmt"

"github.com/aceld/kis-flow/kis"
)

Expand Down
1 change: 1 addition & 0 deletions test/faas/faas_abort.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package faas
import (
"context"
"fmt"

"github.com/aceld/kis-flow/kis"
)

Expand Down
1 change: 1 addition & 0 deletions test/faas/faas_data_reuse.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package faas
import (
"context"
"fmt"

"github.com/aceld/kis-flow/kis"
)

Expand Down
1 change: 1 addition & 0 deletions test/faas/faas_demo1.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package faas
import (
"context"
"fmt"

"github.com/aceld/kis-flow/kis"
)

Expand Down
1 change: 1 addition & 0 deletions test/faas/faas_demo2.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package faas
import (
"context"
"fmt"

"github.com/aceld/kis-flow/kis"
"github.com/aceld/kis-flow/log"
)
Expand Down
1 change: 1 addition & 0 deletions test/faas/faas_demo3.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package faas
import (
"context"
"fmt"

"github.com/aceld/kis-flow/kis"
)

Expand Down
1 change: 1 addition & 0 deletions test/faas/faas_demo4.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package faas
import (
"context"
"fmt"

"github.com/aceld/kis-flow/kis"
)

Expand Down
1 change: 1 addition & 0 deletions test/faas/faas_jump.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package faas
import (
"context"
"fmt"

"github.com/aceld/kis-flow/kis"
)

Expand Down
1 change: 1 addition & 0 deletions test/faas/faas_no_result.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package faas
import (
"context"
"fmt"

"github.com/aceld/kis-flow/kis"
)

Expand Down
1 change: 1 addition & 0 deletions test/faas/faas_stu_score_avg.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package faas

import (
"context"

"github.com/aceld/kis-flow/kis"
"github.com/aceld/kis-flow/serialize"
"github.com/aceld/kis-flow/test/proto"
Expand Down
1 change: 1 addition & 0 deletions test/faas/faas_stu_score_avg_print.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package faas
import (
"context"
"fmt"

"github.com/aceld/kis-flow/kis"
"github.com/aceld/kis-flow/serialize"
"github.com/aceld/kis-flow/test/proto"
Expand Down
3 changes: 2 additions & 1 deletion test/kis_action_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ package test
import (
"context"
"fmt"
"testing"

"github.com/aceld/kis-flow/file"
"github.com/aceld/kis-flow/kis"
"testing"
)

func TestActionAbort(t *testing.T) {
Expand Down
3 changes: 2 additions & 1 deletion test/kis_auto_inject_param_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@ package test

import (
"context"
"testing"

"github.com/aceld/kis-flow/common"
"github.com/aceld/kis-flow/config"
"github.com/aceld/kis-flow/file"
"github.com/aceld/kis-flow/flow"
"github.com/aceld/kis-flow/kis"
"github.com/aceld/kis-flow/test/faas"
"github.com/aceld/kis-flow/test/proto"
"testing"
)

func TestAutoInjectParamWithConfig(t *testing.T) {
Expand Down
3 changes: 2 additions & 1 deletion test/kis_config_export_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ package test

import (
"fmt"
"testing"

"github.com/aceld/kis-flow/file"
"github.com/aceld/kis-flow/kis"
"testing"
)

func TestConfigExportYaml(t *testing.T) {
Expand Down
3 changes: 2 additions & 1 deletion test/kis_config_import_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ package test

import (
"context"
"testing"

"github.com/aceld/kis-flow/file"
"github.com/aceld/kis-flow/kis"
"testing"
)

func TestConfigImportYaml(t *testing.T) {
Expand Down
3 changes: 2 additions & 1 deletion test/kis_config_test.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package test

import (
"testing"

"github.com/aceld/kis-flow/common"
"github.com/aceld/kis-flow/config"
"github.com/aceld/kis-flow/log"
"testing"
)

func TestNewFuncConfig(t *testing.T) {
Expand Down
3 changes: 2 additions & 1 deletion test/kis_connector_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ package test

import (
"context"
"testing"

"github.com/aceld/kis-flow/common"
"github.com/aceld/kis-flow/config"
"github.com/aceld/kis-flow/flow"
"testing"
)

func TestNewKisConnector(t *testing.T) {
Expand Down
3 changes: 2 additions & 1 deletion test/kis_flow_commit_batch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ package test

import (
"context"
"testing"

"github.com/aceld/kis-flow/file"
"github.com/aceld/kis-flow/kis"
"github.com/aceld/kis-flow/log"
"testing"
)

func TestForkFlowCommitBatch(t *testing.T) {
Expand Down
3 changes: 2 additions & 1 deletion test/kis_flow_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ package test

import (
"context"
"testing"

"github.com/aceld/kis-flow/common"
"github.com/aceld/kis-flow/config"
"github.com/aceld/kis-flow/flow"
"testing"
)

func TestNewKisFlow(t *testing.T) {
Expand Down
3 changes: 2 additions & 1 deletion test/kis_fork_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ package test
import (
"context"
"fmt"
"testing"

"github.com/aceld/kis-flow/common"
"github.com/aceld/kis-flow/config"
"github.com/aceld/kis-flow/file"
"github.com/aceld/kis-flow/flow"
"github.com/aceld/kis-flow/kis"
"testing"
)

func TestForkFlow(t *testing.T) {
Expand Down
3 changes: 2 additions & 1 deletion test/kis_function_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ package test

import (
"context"
"testing"

"github.com/aceld/kis-flow/common"
"github.com/aceld/kis-flow/config"
"github.com/aceld/kis-flow/flow"
"github.com/aceld/kis-flow/function"
"testing"
)

func TestNewKisFunction(t *testing.T) {
Expand Down
3 changes: 2 additions & 1 deletion test/kis_log_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ package test

import (
"context"
"github.com/aceld/kis-flow/log"
"testing"

"github.com/aceld/kis-flow/log"
)

func TestKisLogger(t *testing.T) {
Expand Down
Loading

0 comments on commit 8d8e693

Please sign in to comment.