A Crash Course on Go Templates

  Рет қаралды 16,332

Google Developers Space

Google Developers Space

Күн бұрын

Timestamp:
00:00 Speaker's Introduction & Content Overview
00:32 Introduction to Go Templates
02:21 Template & Composition
06:45 Do Go Templates Support Template Inheritance?
09:24 Syntax and Variables
16:30 Functions, Methods and Pipes
19:29 The End
21:11 Q1 Why is there a current template?
22:04 Q2 Why is there execute and execute template?
23:10 Q3 Tried using Golang template to generate code?
25:14 Q4 What if the code isn't a Golang code? Perhaps its like JS/Phyton
This event is brought to you by Go Singapore. GoSG is a meetup for the Go programming enthusiasts in Singapore.
Name: Chua Bok Woon (Developer, TeckWah)
Topic: A Crash Course on Go Templates
A quick talk on everything you need to know about Go templates. Topics covered:
- Template composition
- Syntax and variables
- Functions, methods and pipes
*
For more updates on upcoming events, follow us on social media:
✉️ Newsletter → goo.gle/devspace-news
👤 Facebook → / devspacesg
🐦 Twitter → / devspacesg
🔴 Meetup →www.meetup.com/developer-space/

Пікірлер: 20
@abdulfatahmohammed6800
@abdulfatahmohammed6800 Ай бұрын
This video is underrated.
@houbill5363
@houbill5363 5 ай бұрын
Wonderful content with depth. Thanks a lot!!
@oussamasethoum1665
@oussamasethoum1665 2 жыл бұрын
This is very useful thank you very much.
@BeefIngot
@BeefIngot 10 ай бұрын
I'm not a web dev, and so maybe I am just not used to frequent templating usage, but compared to other templating engines I've seen, something about this just feels bad. From the awkward seperate templates all existing on the same level going to one mega not component, it just feels very wrong and quick to be confusing as your complexity grows. Maybe its just the way this quick demo was setup, but it feels like n^2 comprehension complexity
@volt8399
@volt8399 3 ай бұрын
This was amazing thank you Mr Bok!
@hos7012
@hos7012 Жыл бұрын
the best explanation for go temple
@exponent42
@exponent42 7 ай бұрын
very precise overview, thank you
@da_revo5747
@da_revo5747 Жыл бұрын
This was actually super useful
@RodyDavis
@RodyDavis 9 ай бұрын
Awesome video 🔥
@tobiasnickel3750
@tobiasnickel3750 9 ай бұрын
thanks for the video, I was just fighting alot, it just did not wanted to render my variabled, and now I found the fields need to be public,... capitalized.
@fxthomas3104
@fxthomas3104 3 ай бұрын
Hello, Great Video. I have a question does Go template work on docx files out of the box . I saw some GO github projects using libraries but they did not look being used a lot.
@barygold9175
@barygold9175 Жыл бұрын
Documentation seems to say that it’s possible to use your own functions in a template. I would love a simple example of this working.
@bhaktianum2431
@bhaktianum2431 Жыл бұрын
Can you give the syntax and example for nextLine command in go template
@RootsterAnon
@RootsterAnon Жыл бұрын
I like how they have Anime profile pic... great insight. thank you.
@bokwoon
@bokwoon Жыл бұрын
@abrahamanakagung4279
@abrahamanakagung4279 9 ай бұрын
Great course! btw is there any link to the slide? Thanks.
@tobiasnickel3750
@tobiasnickel3750 9 ай бұрын
i like you examples
@aviknayak9703
@aviknayak9703 Ай бұрын
Do we really need this in the day and age of chat GPT 4.0 ?
@baxiry.
@baxiry. Жыл бұрын
in go you can use both wah 1:45
@SreyansJainSher
@SreyansJainSher Жыл бұрын
Very well explained. This cleared many confusions I had. Thank you.
How Do Debuggers Work in Go?
22:06
Google Developers Space
Рет қаралды 473
Learn GO Fast: Full Tutorial
1:07:53
Alex Mux
Рет қаралды 344 М.
- А что в креме? - Это кАкАооо! #КондитерДети
00:24
Телеканал ПЯТНИЦА
Рет қаралды 7 МЛН
Каха и суп
00:39
К-Media
Рет қаралды 6 МЛН
Go Templates - Simple and Powerful
24:17
Donald Feury
Рет қаралды 22 М.
Programming Is NOT Enough | Add these 7 skills…
13:19
Travis Media
Рет қаралды 415 М.
Beginners Should Think Differently When Writing Golang
11:35
Anthony GG
Рет қаралды 98 М.
SQLC in Go - Auto-Generating Database Code in Golang
32:02
BugBytes
Рет қаралды 9 М.
Rust vs Go : Hands On Comparison
50:40
ThePrimeTime
Рет қаралды 213 М.
Master Go Programming With These Concurrency Patterns (in 40 minutes)
46:15
Pydantic Tutorial • Solving Python's Biggest Problem
11:07
pixegami
Рет қаралды 251 М.
Go Programming - JSON Encoding & Decoding in Golang
25:04
BugBytes
Рет қаралды 7 М.
Generative AI in a Nutshell - how to survive and thrive in the age of AI
17:57
Klavye İle Trafik Işığını Yönetmek #shorts
0:18
Osman Kabadayı
Рет қаралды 5 МЛН
Samsung laughing on iPhone #techbyakram
0:12
Tech by Akram
Рет қаралды 635 М.
iPhone, Galaxy или Pixel? 😎
0:16
serg1us
Рет қаралды 372 М.