Slices in golang

  Рет қаралды 45,940

Hitesh Choudhary

Hitesh Choudhary

Күн бұрын

Пікірлер: 35
@MukeshKumar-of9zh
@MukeshKumar-of9zh 3 жыл бұрын
Take pointers from C and take list slicing from python => letzzz Go 😂😂
@reddysprakash5666
@reddysprakash5666 Жыл бұрын
slices in golang are same like arrays in python
@beachfeet6055
@beachfeet6055 2 жыл бұрын
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.7586
@davida.7586 3 жыл бұрын
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 !
@akmzahidulislam2764
@akmzahidulislam2764 2 жыл бұрын
I think Hitesh explained it. This is a continuation from earlier video on Array. So, viewing chronologically will remove confusion.
@MaksymMinenko
@MaksymMinenko 2 жыл бұрын
There's an emmet shortcut for creating "package main func main(){}": pkgm
@akmzahidulislam2764
@akmzahidulislam2764 2 жыл бұрын
ওয়ান্ডারফুল টিউটোরিয়াল, দাদা। ক্লিন ডিটেইলস। প্রতিটা সংলাপ গুরুত্বপূর্ণ। প্রতিটা উদাহরণ একদম সুনির্দিষ্ট। রীতিমতো ভালবাসায় জড়িয়ে যাওয়ার মতো লেসন।
@shakthis_view
@shakthis_view 2 жыл бұрын
You forgot to mention very important thing about slice which is about 'cap'
@CWLabs7209
@CWLabs7209 Жыл бұрын
slices are arrays
@tarunshroti3255
@tarunshroti3255 3 жыл бұрын
Great work hitesh
@d3vilop1
@d3vilop1 Жыл бұрын
Slices are just like Vectors in C++ imo ig so , Amazing Series !
@shaayarkasafar
@shaayarkasafar Жыл бұрын
Now I can relate it with Terraform more
@smanzoli
@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_01
@Amac16_01 2 жыл бұрын
How to sort in decreasing order ?
@anujtyagi8173
@anujtyagi8173 2 жыл бұрын
Try this go.dev/play/p/yf-nisgnMTF Also, Click on Example here: pkg.go.dev/sort#Reverse
@subham_9418
@subham_9418 3 жыл бұрын
are you using any vs code extension for shortcuts like fp for fmt.println?
@sathvikhegde3895
@sathvikhegde3895 2 жыл бұрын
ya he's using go extension from Go Team at Google
@lakshaygupta6951
@lakshaygupta6951 5 ай бұрын
fruitList = fruitList[:3] should work just fine, why we need append method?
@ImSiddu2000
@ImSiddu2000 2 жыл бұрын
I have a doubt when to use print, println, printf In golang. -Thank you
@anujtyagi8173
@anujtyagi8173 2 жыл бұрын
I have used only println and printf in GO. Println is printf with " "
@utkarshagarwal8390
@utkarshagarwal8390 Жыл бұрын
print concatenates strings, println will put a line break after every new string, and printf will be used for formatted output
@deepak_hp
@deepak_hp 3 жыл бұрын
is Slices a pointer?
@jayranpariya7142
@jayranpariya7142 3 жыл бұрын
Nice video 🙏
@YouAndImpact
@YouAndImpact 3 жыл бұрын
Nice video 👌
@gLitCheRR44
@gLitCheRR44 Ай бұрын
Wow. I hear Go is an awesome language and I believe it, but this (shorthand) syntax for initializing a slice is awful.
@DipankarTripathi-u2t
@DipankarTripathi-u2t 4 ай бұрын
Its like substring in java
@KeshavKarki-c2v
@KeshavKarki-c2v 11 ай бұрын
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
@praveens2272
@praveens2272 2 ай бұрын
Highscores are heavily mutated with make
@MuhammadAli-hh9td
@MuhammadAli-hh9td 7 ай бұрын
Best
@mrrishiraj88
@mrrishiraj88 3 жыл бұрын
🙏
@wadewilson5030
@wadewilson5030 Жыл бұрын
And all python developers are thinking after this Its this just array...
@reddysprakash5666
@reddysprakash5666 Жыл бұрын
true
@nomeshg
@nomeshg 3 жыл бұрын
First comment!😉
@khizrshaikh9902
@khizrshaikh9902 3 жыл бұрын
First Comment I want heart
@aaasisssx
@aaasisssx 3 жыл бұрын
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. 🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥
How to remove a value from slice based on index in golang
5:35
Hitesh Choudhary
Рет қаралды 34 М.
Concurrency and goroutines in golang
13:18
Hitesh Choudhary
Рет қаралды 44 М.
Function Iterators might just change the way we write loops in Go
11:35
Handling URL in golang
13:43
Hitesh Choudhary
Рет қаралды 35 М.
Defer in golang
10:27
Hitesh Choudhary
Рет қаралды 34 М.
This is your last video about Golang Structs!
15:57
Flo Woelki
Рет қаралды 10 М.
Rob Pike: What Golang Got Right & Wrong
29:23
ThePrimeTime
Рет қаралды 152 М.
Handling routes and testing routes in golang
20:25
Hitesh Choudhary
Рет қаралды 18 М.
3 Golang Tips For Beginners I Wish I Knew Sooner
13:18
Anthony GG
Рет қаралды 49 М.
This is the BEST Golang Context Package Tutorial
12:18
Melkey
Рет қаралды 16 М.
Go Class: 10 Slices in Detail
30:20
Matt KØDVB
Рет қаралды 13 М.
Wait groups in golang
11:54
Hitesh Choudhary
Рет қаралды 27 М.