---
title: "Discussion on \"How to Create Plaintext Reports in Go Using Templates with Loops and Conditionals\" | Hashnode"
description: "Discussion on \"How to Create Plaintext Reports in Go Using Templates with Loops and Conditionals\". My previous blog post introduced templates in Go by demoing how to produce a simple string using the template.New().Parse function. In this blog post, I will go over the steps on how to use the text/template package with loops and conditional logic t..."
url: "https://hashnode.com/posts/how-to-create-plaintext-reports-in-go-using-templates-with-loops-and-conditionals/6864398cb6a2dbd2d5f5f4df"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to Create Plaintext Reports in Go Using Templates with Loops and Conditionals](https://blog.gotechwithalissa.com/how-to-create-plaintext-reports-in-go-using-templates-with-loops-and-conditionals?utm_source=hashnode&utm_medium=feed)

My previous blog post introduced templates in Go by demoing how to produce a simple string using the template.New().Parse function. In this blog post, I will go over the steps on how to use the text/template package with loops and conditional logic t...

Jul 1, 2025 · 3 min read · blog.gotechwithalissa.com  
Updated Jul 22, 2025  
Read the article

-   [#templates-in-go](https://hashnode.com/tag/templates-in-go)
-   [#template-actions-in-go](https://hashnode.com/tag/template-actions-in-go)
-   [#golang](https://hashnode.com/tag/golang)
-   [#go](https://hashnode.com/tag/go)
-   [#for-loops](https://hashnode.com/tag/for-loops)
-   [#conditional-statement](https://hashnode.com/tag/conditional-statement)

## Written by

[Alissa Lozhkin](https://hashnode.com/@AlissaL)

@AlissaL

  
[View profile](https://hashnode.com/@AlissaL)

Computer Science, Math, and Psychology student at UofT

My name is Alissa and I am a software developer at RBC Capital Markets! I studied computer science and math at the University of Toronto and I am very interested in learning about new technologies! Get in touch with me on LinkedIn: https://www.linkedin.com/in/alissa-lozhkin

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
