Very good explanation and examples. Thank you and keep such videos coming. It helps a lot to beginners
@prashantpandey645
4 жыл бұрын
whats diff btwn print and println?
@teluskosupport1
Жыл бұрын
Using print, you still in in same line after printing but using println you can come in new line after printing.
@kvelez
10 ай бұрын
package main import "fmt" func add(x, y int) (result, answer int) { result = x + y answer = x - y return } func main() { n := 7 m := 2 result, answer := add(n, m) fmt.Println(result, answer) }
@JavaAidTutorials
4 жыл бұрын
Nice video..
@ECRSundarRajanT
3 жыл бұрын
Post more videos in golang language . concept like arrays ,interface ,struct, map
@kvelez
10 ай бұрын
package main import "fmt" func add(x int, y int) (int, int) { return x + y, x - y } func main() { n := 7 m := 2 result, answer := add(n, m) fmt.Println(result, answer) }
@ECRSundarRajanT
3 жыл бұрын
Nice explain
@akware977
3 жыл бұрын
Nice one navin. Just thinking function returned more than 1 value dose it violets single responsibility of function ?
@teluskosupport1
Жыл бұрын
Actually this ia additional feature added in go lang.
@saskia_berger
Жыл бұрын
very good! I yet still don't completely understand why we can say out1 = x + y without "var" ? In Lecture 3 I got it so that we can declare without "var" when using ":=", as per example: num := 2, 3. I'd be very happy if someone could shed a light on my doubts!
@rajeshSimpleton
Жыл бұрын
@kadyshevainmyheart Because he has already declared out1 in the function declaration line - "fun calc(x, y int) (out1, out2 int) { ..."
@saskia_berger
Жыл бұрын
@@rajeshSimpleton ah, make sense now!
@sukhmanjeetsingh1314
4 жыл бұрын
You again did it
@aryamaangoswamy179
4 жыл бұрын
In VS Code, it highlights main function and says 'main redeclared in this block'. How do we fix that
@tirupurarea
4 жыл бұрын
NC
@sudhirtataraju9853
2 жыл бұрын
Looking at this want to confront ppl say go lang is easier than python :D
Пікірлер: 31