Go (Golang) Tutorial #4 - Printing & Formatting Strings

  Рет қаралды 74,463

Net Ninja

Net Ninja

Күн бұрын

Пікірлер: 42
@abgvedr
@abgvedr 2 ай бұрын
Wonderful. A C++ dev over here of 8 years, started learning Go, and the more i learn the more i love it. Thanks for tutorial!
@nitin0001
@nitin0001 3 жыл бұрын
Thanks for starting this series, I have been waiting for this
@MarcusBryan1990
@MarcusBryan1990 7 ай бұрын
Your channel is the reason I now own a house.
@NetNinja
@NetNinja 7 ай бұрын
Haha, thanks Marcus! :)
@prophetjamz94
@prophetjamz94 3 жыл бұрын
I needed this series
@MaxProgramming
@MaxProgramming 3 жыл бұрын
Thank you so much Shaun! Will you also make a series on REST API in Go? Edit: Did you notice how quick VS Code showed the errors while working with Go compared to JS
@NetNinja
@NetNinja 3 жыл бұрын
Hey, yeah I will be doing more on Go in the future - probably a series on testing & one on creating an API :)
@MaxProgramming
@MaxProgramming 3 жыл бұрын
@@NetNinja Thank youuu 🤩
@noaexel
@noaexel 3 жыл бұрын
@@NetNinja what is the recommended framework for development in Golang,
@TahirBhai
@TahirBhai 3 жыл бұрын
@@noaexel yeah also looking for the reply
@void_star_void
@void_star_void 3 жыл бұрын
what about string interpolation like in js ? ` some string ${someVar} `
@0xPanda1
@0xPanda1 3 жыл бұрын
thank you Shaun
@void_star_void
@void_star_void 3 жыл бұрын
Keep'em comin mate 😍
@noaexel
@noaexel 3 жыл бұрын
Thank you for this shaun, however i have 2 questions, 1. I noticed you don't end your statements with a semicolon, is it not required? 2. I also noticed that when you run your main file to demo your examples, its takes some time to output on the console, why is that? Thank you...
@TahirBhai
@TahirBhai 3 жыл бұрын
Yeah I noticed it too, thnx for comment
@shr1han
@shr1han 3 жыл бұрын
1. It's kind of like Python. If you've used it, you should know that there's no semicolons. But, if you write multiple statements in a single line, you need to write first statement, semicolon, then another... 2. It takes time because it needs to compile everything and then run the program.
@sreekar_s
@sreekar_s 3 жыл бұрын
Does vscode provide intellisense?
@MaxProgramming
@MaxProgramming 3 жыл бұрын
Installing the Go extension for that is useful
@LoveisHell85
@LoveisHell85 3 жыл бұрын
Great series. I would love to see React/Node/PostgresSQL fullstack project in the future. Thank you
@gyenabubakar
@gyenabubakar 3 жыл бұрын
You mentioned that you'll leave a link to the format specifiers but I'm not seeing it in the description.
@laragram
@laragram 3 жыл бұрын
Here: golang.org/pkg/fmt/
@nanaarhin5567
@nanaarhin5567 Жыл бұрын
How are you able to switch between the terminal and the console. I am new to this program and the software as well and I it makes the learning a bit slow if I have to keep clicking between the terminal and where I am writing my code. Please help
@themannyzaur
@themannyzaur 8 ай бұрын
learn your editor and its shortcuts for faster productivity in this case it's Ctrl + ` ` is found above the Tab key
@kovendanragupathi7632
@kovendanragupathi7632 3 жыл бұрын
@The Net Ninja,Can you please consider uploading full series of styled components for React
@SiddharthRay1
@SiddharthRay1 3 жыл бұрын
thanks Shaun!
@dlysele
@dlysele 3 жыл бұрын
In the formated string, when I did fmt.Printf("my age is %v and my name is %v", age, name), at the terminal, there would be a % at the end of the sentence, do you know what that is?
@sreenirnair
@sreenirnair Жыл бұрын
That is actually the command prompt for the next line. When you use Printf, unless you terminate the string with a character, the print stops in the middle of the line and the command prompt shows up in the middle of the line as % (if you are using zsh). To avoid this, add a , like fmt.Printf("My age is %v ", age) etc. PS: Println automatically adds a new line, but Printf behaves differently.
@soumadip_banerjee
@soumadip_banerjee 3 жыл бұрын
Thank you Mr.Pelling!
@apoorvsinha4136
@apoorvsinha4136 Ай бұрын
I was looking at a Indian tutorial by Hitesh which has millions of views but turns out bigger number of views doesn't always mean better information. Switching to this series.
@NetNinja
@NetNinja Ай бұрын
Awesome, hope it's helpful :)
@oglothenerd
@oglothenerd 9 ай бұрын
You should have explained why %q was changing the number to a character. (Essentially, 35 is the ASCII code for '#'.)
@breawen
@breawen 7 ай бұрын
yeah, at first i though it outputs '#' because it was an int. glad i tried it with a different number, making me realize what it actually does.
@oglothenerd
@oglothenerd 7 ай бұрын
@@breawen :D
@ch0wderz912
@ch0wderz912 2 жыл бұрын
What jobs requires Golang?? lol I need a job so I don't look like a dissapointment, anyways coding is fun! Is Golang a necessary language for Cybersecurity??
@manh9105
@manh9105 Жыл бұрын
Go seems to have been heavily inspired by C
@ginnerzapata5909
@ginnerzapata5909 Жыл бұрын
it was made by the creator of B (the predecessor of C)
@splytrz
@splytrz Жыл бұрын
when a language doesn't have string inerpolation in 2023... :/
@sahilchanglani8886
@sahilchanglani8886 3 жыл бұрын
what's the difference between using sprintf to assign a variable and assigning string directly to the variable?
@krzysztofrapior8597
@krzysztofrapior8597 3 жыл бұрын
Most likely it's just a design. Compiler (if it's smart) should do the same job in the end.
Go (Golang) Tutorial #5 - Arrays & Slices
10:57
Net Ninja
Рет қаралды 77 М.
Learn GO Fast: Full Tutorial
1:07:53
Alex Mux
Рет қаралды 511 М.
ВЛОГ ДИАНА В ТУРЦИИ
1:31:22
Lady Diana VLOG
Рет қаралды 1,2 МЛН
#behindthescenes @CrissaJackson
0:11
Happy Kelli
Рет қаралды 27 МЛН
UFC 287 : Перейра VS Адесанья 2
6:02
Setanta Sports UFC
Рет қаралды 486 М.
GIANT Gummy Worm #shorts
0:42
Mr DegrEE
Рет қаралды 152 МЛН
Go (Golang) Tutorial #7 - Loops
8:45
Net Ninja
Рет қаралды 45 М.
Learn Go in 12 Minutes
13:34
Jake Wright
Рет қаралды 952 М.
How To Use The Context Package In Golang?
17:03
Anthony GG
Рет қаралды 67 М.
Go: 1 Thing I Would Change
15:02
ThePrimeTime
Рет қаралды 57 М.
Go (Golang) Tutorial #3 - Variables, Strings & Numbers
13:54
Net Ninja
Рет қаралды 96 М.
Why I Use Golang In 2024
9:21
ThePrimeTime
Рет қаралды 363 М.
How I Structure New Projects In Golang
21:32
Anthony GG
Рет қаралды 65 М.
A Practical Guide to Pointers in Go
10:05
TomDoesTech
Рет қаралды 4,5 М.
Golang: The Last Interface Explanation You'll Ever Need
17:58
Flo Woelki
Рет қаралды 25 М.
ВЛОГ ДИАНА В ТУРЦИИ
1:31:22
Lady Diana VLOG
Рет қаралды 1,2 МЛН