Take pointers from C and take list slicing from python => letzzz Go 😂😂
@reddysprakash5666 Жыл бұрын
slices in golang are same like arrays in python
@beachfeet60552 жыл бұрын
You kept referring to append() as a method. To be precise, it is a built-in function. The same for make(). Methods are attached to struct types and use dot syntax as with x.method().
@davida.75863 жыл бұрын
The code like - " append(fruitList[:3]) " will confuse people. It would be better to first explain the way to access slice/array elements with [x:n] then continue to use it in append() method. Anyway, Thank you !
@akmzahidulislam27642 жыл бұрын
I think Hitesh explained it. This is a continuation from earlier video on Array. So, viewing chronologically will remove confusion.
@MaksymMinenko2 жыл бұрын
There's an emmet shortcut for creating "package main func main(){}": pkgm
You forgot to mention very important thing about slice which is about 'cap'
@CWLabs7209 Жыл бұрын
slices are arrays
@tarunshroti32553 жыл бұрын
Great work hitesh
@d3vilop1 Жыл бұрын
Slices are just like Vectors in C++ imo ig so , Amazing Series !
@shaayarkasafar Жыл бұрын
Now I can relate it with Terraform more
@smanzoli Жыл бұрын
Can I have a slice into a slice position, the same way Python does with lists? ex: slice = [[1,2], [4,5,6]] so slice 0] is the slice [1,2] and slice [1] is [4,5,6] so slice[1][1] would be 5
@Amac16_012 жыл бұрын
How to sort in decreasing order ?
@anujtyagi81732 жыл бұрын
Try this go.dev/play/p/yf-nisgnMTF Also, Click on Example here: pkg.go.dev/sort#Reverse
@subham_94183 жыл бұрын
are you using any vs code extension for shortcuts like fp for fmt.println?
@sathvikhegde38952 жыл бұрын
ya he's using go extension from Go Team at Google
@lakshaygupta69515 ай бұрын
fruitList = fruitList[:3] should work just fine, why we need append method?
@ImSiddu20002 жыл бұрын
I have a doubt when to use print, println, printf In golang. -Thank you
@anujtyagi81732 жыл бұрын
I have used only println and printf in GO. Println is printf with " "
@utkarshagarwal8390 Жыл бұрын
print concatenates strings, println will put a line break after every new string, and printf will be used for formatted output
@deepak_hp3 жыл бұрын
is Slices a pointer?
@jayranpariya71423 жыл бұрын
Nice video 🙏
@YouAndImpact3 жыл бұрын
Nice video 👌
@gLitCheRR44Ай бұрын
Wow. I hear Go is an awesome language and I believe it, but this (shorthand) syntax for initializing a slice is awful.
@DipankarTripathi-u2t4 ай бұрын
Its like substring in java
@KeshavKarki-c2v11 ай бұрын
This is just List in python how you name it and it is just slicing the list to get part of it why go lang is unnecessary complex
@praveens22722 ай бұрын
Highscores are heavily mutated with make
@MuhammadAli-hh9td7 ай бұрын
Best
@mrrishiraj883 жыл бұрын
🙏
@wadewilson5030 Жыл бұрын
And all python developers are thinking after this Its this just array...
@reddysprakash5666 Жыл бұрын
true
@nomeshg3 жыл бұрын
First comment!😉
@khizrshaikh99023 жыл бұрын
First Comment I want heart
@aaasisssx3 жыл бұрын
hello sir. I am student, currently studying Australia. I tried to buy one of your courses from LCO, but it doesn't accept international payment. Is there any way I can enrol in the course??? Thank you. 🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥