changed the order of the import library

This commit is contained in:
Mert Gör 🇹🇷 2024-01-30 08:01:13 +03:00
parent e7291c1fc5
commit dcf1e5c80b
Signed by: hwpplayer1
GPG key ID: 03E547D043AB6C8F

10
main.go
View file

@ -1,7 +1,7 @@
/** /**
main.go main.go
BSD 3-Clause License BSD 3-Clause License
Copyright (c) 2024 Mass Collaboration Labs and contributors Copyright (c) 2024 Mass Collaboration Labs and contributors
@ -30,7 +30,7 @@ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
**/ **/
package main package main
@ -41,6 +41,7 @@ import (
"golesson/channels" "golesson/channels"
"golesson/conditionals" "golesson/conditionals"
"golesson/defer_statement" "golesson/defer_statement"
"golesson/error_handling"
"golesson/examplerange" "golesson/examplerange"
"golesson/functions" "golesson/functions"
"golesson/goroutines" "golesson/goroutines"
@ -52,7 +53,6 @@ import (
"golesson/structs" "golesson/structs"
"golesson/variables" "golesson/variables"
"time" "time"
"golesson/error_handling"
) )
func main() { func main() {
@ -91,7 +91,7 @@ func main() {
pointers.Demo1(&number) pointers.Demo1(&number)
fmt.Println("Number in Main go file", number) fmt.Println("Number in Main go file", number)
numbers:=[]int{1,2,3} numbers := []int{1, 2, 3}
pointers.Demo2(numbers) pointers.Demo2(numbers)
fmt.Println("Numbers in Main", numbers[0]) fmt.Println("Numbers in Main", numbers[0])
structs.Demo1() structs.Demo1()
@ -108,7 +108,7 @@ func main() {
go channels.EvenNumber(EvenNumberCn) go channels.EvenNumber(EvenNumberCn)
go channels.OddNumber(OddNumberCn) go channels.OddNumber(OddNumberCn)
EvenNumberTotal, OddNumberTotal := <- EvenNumberCn, <- OddNumberCn EvenNumberTotal, OddNumberTotal := <-EvenNumberCn, <-OddNumberCn
multiply := EvenNumberTotal * OddNumberTotal multiply := EvenNumberTotal * OddNumberTotal