Skip to content

Commit 70e1f45

Browse files
committed
initial commit
0 parents  commit 70e1f45

File tree

4,238 files changed

+1000071
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

4,238 files changed

+1000071
-0
lines changed

.fixtures/go.mod

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module testapp
2+
3+
go 1.24

.fixtures/internal/app/app.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package app
2+
3+
type App interface {
4+
Start() error
5+
Stop() error
6+
GetName() string
7+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
package something1
2+
3+
import "fmt"
4+
5+
type WebServer struct {
6+
port int
7+
}
8+
9+
func (w *WebServer) Start() error {
10+
fmt.Printf("WebServer starting on port %d\n", w.port)
11+
return nil
12+
}
13+
14+
func (w *WebServer) Stop() error {
15+
fmt.Println("WebServer stopping")
16+
return nil
17+
}
18+
19+
func (w *WebServer) GetName() string {
20+
return "WebServer"
21+
}

.fixtures/pkg/something2/daemon.go

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
package something2
2+
3+
import "fmt"
4+
5+
type ServiceDaemon struct {
6+
name string
7+
}
8+
9+
func (s *ServiceDaemon) Start() error {
10+
fmt.Printf("ServiceDaemon %s starting\n", s.name)
11+
return nil
12+
}
13+
14+
func (s *ServiceDaemon) Stop() error {
15+
fmt.Printf("ServiceDaemon %s stopping\n", s.name)
16+
return nil
17+
}
18+
19+
func (s *ServiceDaemon) GetName() string {
20+
return s.name
21+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
package something3
2+
3+
import "fmt"
4+
5+
type MicroService struct {
6+
id string
7+
host string
8+
}
9+
10+
func (m *MicroService) Start() error {
11+
fmt.Printf("MicroService %s starting on %s\n", m.id, m.host)
12+
return nil
13+
}
14+
15+
func (m *MicroService) Stop() error {
16+
fmt.Printf("MicroService %s stopping\n", m.id)
17+
return nil
18+
}
19+
20+
func (m *MicroService) GetName() string {
21+
return fmt.Sprintf("MicroService-%s", m.id)
22+
}

.fixtures/pkg/something4/worker.go

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
package something4
2+
3+
import "fmt"
4+
5+
type BackgroundWorker struct {
6+
taskQueue []string
7+
}
8+
9+
func (b *BackgroundWorker) Process() error {
10+
fmt.Println("BackgroundWorker processing tasks")
11+
return nil
12+
}
13+
14+
func (b *BackgroundWorker) AddTask(task string) {
15+
b.taskQueue = append(b.taskQueue, task)
16+
}
17+
18+
func (b *BackgroundWorker) GetTaskCount() int {
19+
return len(b.taskQueue)
20+
}

.github/workflows/pipeline.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: pipeline
2+
3+
on: [push]
4+
5+
jobs:
6+
call-go-workflow:
7+
uses: psyb0t/reusable-github-workflows/.github/workflows/go-workflow.yml@master
8+
with:
9+
go_version: "1.24.6"
10+
dep_command: "make dep"
11+
lint_command: "make lint"
12+
test_command: "make test-coverage"

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
*.out
2+
build
3+
*.html
4+
*.txt

.golangci.yml

Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
version: "2"
2+
linters:
3+
enable:
4+
- asasalint
5+
- asciicheck
6+
- bidichk
7+
- bodyclose
8+
- containedctx
9+
- contextcheck
10+
- cyclop
11+
- decorder
12+
- depguard
13+
- dogsled
14+
- dupl
15+
- dupword
16+
- durationcheck
17+
- err113
18+
- errchkjson
19+
- errname
20+
- errorlint
21+
- exhaustive
22+
- forbidigo
23+
- forcetypeassert
24+
- funlen
25+
- ginkgolinter
26+
- gocheckcompilerdirectives
27+
- gochecknoglobals
28+
- gochecknoinits
29+
- gocognit
30+
- goconst
31+
- gocritic
32+
- gocyclo
33+
- godox
34+
- goheader
35+
- gomoddirectives
36+
- gomodguard
37+
- gosec
38+
- gosmopolitan
39+
- grouper
40+
- importas
41+
- interfacebloat
42+
- ireturn
43+
- lll
44+
- loggercheck
45+
- maintidx
46+
- makezero
47+
- mirror
48+
- misspell
49+
- mnd
50+
- musttag
51+
- nakedret
52+
- nestif
53+
- nilerr
54+
- nilnil
55+
- nlreturn
56+
- noctx
57+
- nolintlint
58+
- nonamedreturns
59+
- nosprintfhostport
60+
- prealloc
61+
- predeclared
62+
- promlinter
63+
- reassign
64+
- revive
65+
- rowserrcheck
66+
- sqlclosecheck
67+
- staticcheck
68+
- tagalign
69+
- tagliatelle
70+
- testableexamples
71+
- thelper
72+
- tparallel
73+
- unconvert
74+
- unparam
75+
- usestdlibvars
76+
- wastedassign
77+
- whitespace
78+
- wrapcheck
79+
- wsl_v5
80+
- zerologlint
81+
settings:
82+
wsl_v5:
83+
allow-first-in-block: true
84+
allow-whole-block: false
85+
branch-max-lines: 2
86+
depguard:
87+
rules:
88+
main:
89+
allow:
90+
- $gostd
91+
- github.com/sirupsen/logrus
92+
- github.com/stretchr/testify
93+
- github.com/psyb0t
94+
exclusions:
95+
generated: lax
96+
presets:
97+
- comments
98+
- common-false-positives
99+
paths:
100+
- _test\.go$
101+
formatters:
102+
enable:
103+
- gci
104+
- gofmt
105+
- gofumpt
106+
- goimports
107+
exclusions:
108+
generated: lax
109+
paths:
110+
- _test\.go$

LICENSE

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Copyright 2025 Ciprian Mandache (ciprian.51k.eu)
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4+
5+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6+
7+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

0 commit comments

Comments
 (0)