Skip to content

Commit 59b98b8

Browse files
tjgurwara99siriak
andauthored
fix: change directory structure to idiomatic go directory structure (#333)
* fix: restructured directory structure * fix: minor name changes and updated README.md in linkedlist package * fix: cleanup of commented out code * fix: trying to fix alert caused by the password generator in 'other' directory * fix: golintci errors * fix: removed the montecarlopi algorithm which was implemented in a non testable way and was commented out * fix: restructured search math and strings subpackage * fix: removed commented out files Co-authored-by: Andrii Siriak <siryaka@gmail.com>
1 parent 5ac0bd5 commit 59b98b8

File tree

94 files changed

+822
-1526
lines changed

Some content is hidden

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

94 files changed

+822
-1526
lines changed

ciphers/diffie_hellman_key_exchange/diffiehellmankeyexchange.go renamed to ciphers/diffiehellman/diffiehellmankeyexchange.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
// Package diffie_hellman_key_exchange implements Deffie Hellman Key Exchange Algorithm
1+
// Package diffiehellman implements Deffie Hellman Key Exchange Algorithm
22
// for more information watch : https://www.youtube.com/watch?v=NmM9HA2MQGI
3-
package diffie_hellman_key_exchange
3+
package diffiehellman
44

55
const (
66
generator = 3

ciphers/diffie_hellman_key_exchange/diffiehellmankeyexchange_test.go renamed to ciphers/diffiehellman/diffiehellmankeyexchange_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package diffie_hellman_key_exchange
1+
package diffiehellman
22

33
import (
44
"crypto/rand"

ciphers/xor/xor.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
// Package xor_cipher is an encryption algorithm that operates the exclusive disjunction(XOR)
1+
// Package xor is an encryption algorithm that operates the exclusive disjunction(XOR)
22
// ref: https://en.wikipedia.org/wiki/XOR_cipher
3-
package xor_cipher
3+
package xor
44

55
// Encrypt encrypts with Xor encryption after converting each character to byte
66
// The returned value might not be readable because there is no guarantee

ciphers/xor/xor_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package xor_cipher
1+
package xor
22

33
import (
44
"fmt"

data_structures/binary_tree/binarysearchtree.go

-37
This file was deleted.

data_structures/binary_tree/binarytree.go

-38
This file was deleted.

data_structures/linkedlist/doubly_linkedlist/doublylinkedlist.go

-168
This file was deleted.

data_structures/linkedlist/singly_linkedlist/singly_linkedlist2.go

-104
This file was deleted.

datastructures/linkedlist/cyclicallylinkedlist/Readme.md

-12
This file was deleted.

dynamic_programming/binomialcoefficient.go renamed to dynamic/binomialcoefficient.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package dynamic_programming
1+
package dynamic
22

33
// func main() {
44
// myArrayOfK := [4]int{5, 6, 7, 8}

0 commit comments

Comments
 (0)