Go Templates - Simple and Powerful

  Рет қаралды 22,259

Donald Feury

Donald Feury

Күн бұрын

🎨 Artist/Thumbnail Creator: jawhaj.art
📝 Blog: donaldfeury.xyz/topics
👥Memberships: vod.strms.net/j/UCTHij3Ac5Giz...
🖥 Example Code: gitlab.com/dak425/go-template...
Without even needing to use a framework, go has a very powerful and extendable template package in the standard library.
It can be used for generating HTML pages, simple text documents, or even generating boilerplate code for your project.
THANK YOU ###
Newest Channel Member -
Newest Subscriber - Phillip Lineburg
WANT TO SUPPORT THE CHANNEL? ###
💰 Support Links: donaldfeury.xyz/donate
WANT TO ASK ME A QUESTION? ###
💬 Contact Me: donaldfeury.xyz/contact
SOCIAL PLATFORMS ###
🗣 Matrix: donaldfeury.xyz/matrix
💬 Pleroma: donaldfeury.xyz/pleroma
🗨️ Discord: donaldfeury.xyz/discord
🐦 Twitter: donaldfeury.xyz/twitter
VIDEO PLATFORMS ###
🎦 Twitch: donaldfeury.xyz/twitch
🎥 Odysee: donaldfeury.xyz/odysee
OTHER THINGS ###
📁 GitLab: donaldfeury.xyz/gitlab
🎥 My Gear: kit.co/dfeury
SOFTWARE I USE ###
🌐 Brave Browser - brave.com/
🎞 ffmpeg: ffmpeg.org/
📽️ Open Broadcaster Software: obsproject.com/
🎨 GIMP: www.gimp.org/
📙 Neovim: neovim.io/
Thank ya'll for your time and support!
#golang #go #templates

Пікірлер: 27
@DonaldFeury
@DonaldFeury 3 жыл бұрын
Ya'll got any ideas for what you can do with the template package? The code generation tricks seems pretty useful.
@Aloysius1966
@Aloysius1966 3 жыл бұрын
Reporting. I'd like to build a webApp to query all my various storage arrays and post the metrics to a web page. Like total space, used space, etc. Basically, capacity planning stuff. Cool video. Thanks for posting.
@DonaldFeury
@DonaldFeury 3 жыл бұрын
Oh that sounds pretty neat. So basically you would run some commands, such as *df* , to grab disk usage info, pass that into a go template and produce a static web page?
@Aloysius1966
@Aloysius1966 3 жыл бұрын
@@DonaldFeury Exactly! I'd do that with the whole stack: storage, compute (hardware + hypervisor) & networking metrics. I'd call it "Dr Datacenter" .... if i knew how to program :-)
@DonaldFeury
@DonaldFeury 3 жыл бұрын
Could just learn how to do each piece individually, then finally figure out how combine them. I use that approach to learning all the time.
@fairclothjm
@fairclothjm 3 жыл бұрын
I have used it to generate config files for servers, services, etc
@Greatbubba747
@Greatbubba747 Ай бұрын
Great explainer video! I loved that it is to-the-point and easy to understand.
@RootsterAnon
@RootsterAnon Жыл бұрын
Wow, this is great, i didn't know about this features, so useful!
@morkhoudia9
@morkhoudia9 3 ай бұрын
Awesome
@tomontheinternet
@tomontheinternet 3 жыл бұрын
Thanks Donald. Good intro to templates! Also, love that Hermit font.
@DonaldFeury
@DonaldFeury 3 жыл бұрын
Thank ya Tom and oh yes I love that font
@ericmarquez6747
@ericmarquez6747 2 жыл бұрын
Thanks for the walkthrough on templates. I'm looking at doing a project to automate some data center switch syntax.
@rawriamakittyrawr
@rawriamakittyrawr 2 жыл бұрын
Thank you so much, I finally understand that damn dot
@DonaldFeury
@DonaldFeury 2 жыл бұрын
I'm glad I cleared that up for someone 😂
@jijosunny8626
@jijosunny8626 2 жыл бұрын
Thank you , this is a very good intro to templates! Finally, i understood how helm processes its templates :)
@DonaldFeury
@DonaldFeury 2 жыл бұрын
I have saved another mind from the confusion of templates
@YBWang-pi9qq
@YBWang-pi9qq 2 жыл бұрын
the part of generating golang code is really cool.
@Kleinepaps
@Kleinepaps Жыл бұрын
Hi, it's been a while since this video, but can you use text/template to generate a yaml file from the combination of an override yaml + the template yaml?
@redlinenorma1
@redlinenorma1 10 ай бұрын
Yes, you can. Helm uses go templates exactly for that, for example
@AneeshKumarUSA
@AneeshKumarUSA 7 ай бұрын
What is the best way to insert dynamic data in client-side javascript? JS also uses double curly braces. Vs code shows errors, but it compiles and runs. BTW, I am using chart.js for client side charting. Any suggestions?
@evans8245
@evans8245 3 жыл бұрын
WOW ! AT THIS RATE ! YOU'LL MAKE THOUSANDS OF PENNIES WITH A BLOGGING PLATFORM !
@DonaldFeury
@DonaldFeury 3 жыл бұрын
wut
@evans8245
@evans8245 3 жыл бұрын
@@DonaldFeury just having a laugh, mate ! thanks for the video
MANY ERRORS, HANDLE IT - Go / Golang Error Tutorial | #feurious
13:53
HTMX for Impatient Devs
8:33
Isaac Harris-Holt
Рет қаралды 41 М.
Super sport🤯
00:15
Lexa_Merin
Рет қаралды 20 МЛН
The Worlds Most Powerfull Batteries !
00:48
Woody & Kleiny
Рет қаралды 19 МЛН
NO NO NO YES! (50 MLN SUBSCRIBERS CHALLENGE!) #shorts
00:26
PANDA BOI
Рет қаралды 102 МЛН
HTML Templates Instead Of Reactivity | Prime Reacts
12:42
ThePrimeTime
Рет қаралды 107 М.
The standard library now has all you need for advanced routing in Go.
13:52
Build a Simple HTMX Project | HTMX Explained with Examples
11:49
Why Templates Sucks and Are Better than JSX
8:33
ThePrimeTime
Рет қаралды 42 М.
David Crawshaw   SQLite and Go
32:03
Go Northwest
Рет қаралды 34 М.
A Very Simple Tech Stack
7:58
Awesome
Рет қаралды 68 М.
Introducing The GoTTH Stack - Go, Tailwind CSS, Templ & HTMX
28:29
Master Go Programming With These Concurrency Patterns (in 40 minutes)
46:15
Take Command of Go with Cobra, Go / Golang Cobra Tutorial
36:59
Donald Feury
Рет қаралды 13 М.
Golang +  Templ Tutorial ( The Basics of go Templ ) #1
14:11
More Than Coder
Рет қаралды 6 М.
Mi primera placa con dios
0:12
Eyal mewing
Рет қаралды 420 М.