Skip to content

Commit 2137c99

Browse files
committed
Refactor repo with filename convention and folder convention
1 parent 77fb870 commit 2137c99

Some content is hidden

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

43 files changed

+18
-18
lines changed

.github/workflows/golangci-lint.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ jobs:
1919
- run: echo "/home/runner/golangci-lint-1.31.0-linux-amd64" >> $GITHUB_PATH
2020
- run: go version ; golangci-lint --version # Fix the following and remove || true
2121
- run: golangci-lint run --no-config ciphers
22-
- run: golangci-lint run --no-config data-structures/binary-tree || true
23-
- run: golangci-lint run --no-config data-structures/dynamic-array || true
24-
- run: golangci-lint run --no-config data-structures/hash-map
25-
- run: golangci-lint run --no-config data-structures/linked-list || true
26-
- run: golangci-lint run --no-config data-structures/trie || true
27-
- run: golangci-lint run --no-config dynamic-programming || true
22+
- run: golangci-lint run --no-config datastructures/binary-tree || true
23+
- run: golangci-lint run --no-config datastructures/dynamic-array || true
24+
- run: golangci-lint run --no-config datastructures/hashmap
25+
- run: golangci-lint run --no-config datastructures/linkedlist || true
26+
- run: golangci-lint run --no-config datastructures/trie || true
27+
- run: golangci-lint run --no-config dynamicprogramming || true
2828
- run: golangci-lint run --no-config other || true
2929
- run: golangci-lint run --no-config searches || true
3030
- run: golangci-lint run --no-config sorts

data-structures/hash-map/hash_map_test.go renamed to datastructures/hashmap/hashmap_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package hashmap_test
22

33
import (
4-
hashmap "TheAlgorithms/Go/data-structures/hash-map"
4+
"TheAlgorithms/Go/datastructures/hashmap"
55
"fmt"
66
"testing"
77
)

data-structures/linked-list/double-linkedlist.go renamed to datastructures/linkedlist/doublylinkedlist.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// demonstration of doubly linked list in golang
22

3-
package doublelinkedlist
3+
package linkedlist
44

55
// package main
66

data-structures/linked-list/Linkedlist.go renamed to datastructures/linkedlist/singlylinkedlist.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package main
1+
package linkedlist
22

33
import "fmt"
44

0 commit comments

Comments
 (0)