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

  Рет қаралды 73,917

Net Ninja

Net Ninja

Күн бұрын

Пікірлер: 42
@abgvedr
@abgvedr Ай бұрын
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
@prophetjamz94
@prophetjamz94 3 жыл бұрын
I needed this series
@LoveisHell85
@LoveisHell85 3 жыл бұрын
Great series. I would love to see React/Node/PostgresSQL fullstack project in the future. Thank you
@0xPanda1
@0xPanda1 3 жыл бұрын
thank you Shaun
@MarcusBryan1990
@MarcusBryan1990 7 ай бұрын
Your channel is the reason I now own a house.
@NetNinja
@NetNinja 7 ай бұрын
Haha, thanks Marcus! :)
@void_star_void
@void_star_void 3 жыл бұрын
what about string interpolation like in js ? ` some string ${someVar} `
@void_star_void
@void_star_void 3 жыл бұрын
Keep'em comin mate 😍
@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
@SiddharthRay1
@SiddharthRay1 3 жыл бұрын
thanks Shaun!
@soumadip_banerjee
@soumadip_banerjee 3 жыл бұрын
Thank you Mr.Pelling!
@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.
@kovendanragupathi7632
@kovendanragupathi7632 3 жыл бұрын
@The Net Ninja,Can you please consider uploading full series of styled components for React
@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 7 ай бұрын
learn your editor and its shortcuts for faster productivity in this case it's Ctrl + ` ` is found above the Tab key
@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.
@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/
@sreekar_s
@sreekar_s 3 жыл бұрын
Does vscode provide intellisense?
@MaxProgramming
@MaxProgramming 3 жыл бұрын
Installing the Go extension for that is useful
@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 6 ай бұрын
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 6 ай бұрын
@@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)
@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.
@splytrz
@splytrz Жыл бұрын
when a language doesn't have string inerpolation in 2023... :/
Go (Golang) Tutorial #5 - Arrays & Slices
10:57
Net Ninja
Рет қаралды 76 М.
The evil clown plays a prank on the angel
00:39
超人夫妇
Рет қаралды 44 МЛН
Quando A Diferença De Altura É Muito Grande 😲😂
00:12
Mari Maria
Рет қаралды 34 МЛН
[BEFORE vs AFTER] Incredibox Sprunki - Freaky Song
00:15
Horror Skunx 2
Рет қаралды 19 МЛН
Go (Golang) Tutorial #6 - The Standard Library
12:31
Net Ninja
Рет қаралды 57 М.
Learn GO Fast: Full Tutorial
1:07:53
Alex Mux
Рет қаралды 498 М.
Go Seigen (W) vs Kitani Minoru (B) - Real Board ASMR
36:24
Live By The Stone
Рет қаралды 102 М.
Learn Go in 12 Minutes
13:34
Jake Wright
Рет қаралды 952 М.
Why I Use Golang In 2024
9:21
ThePrimeTime
Рет қаралды 357 М.
Vim Tips I Wish I Knew Earlier
23:00
Sebastian Daschner
Рет қаралды 81 М.
This is the BEST Golang Context Package Tutorial
12:18
Melkey
Рет қаралды 15 М.
Golang Tutorial for Beginners | Full Go Course
3:24:59
TechWorld with Nana
Рет қаралды 1,9 МЛН
The evil clown plays a prank on the angel
00:39
超人夫妇
Рет қаралды 44 МЛН