---
title: "Discussion on \"Creating Files & Directories\" | Hashnode"
description: "Discussion on \"Creating Files & Directories\". few general ways you can create files and directories in code.\n\nCreate the create.go file with the following content:\npackage main\n\nimport (\n    \"os\"\n)\n\nfunc main() {\n\n    f, err := os.Create(\"created.file\")\n    if err != nil {\n        panic(err)\n   ..."
url: "https://hashnode.com/posts/creating-files-and-directories--deleted/6280ea36bc9305ec39364d8e"
---

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

Discussion

# [Creating Files & Directories](https://blog.cloudnativefolks.org/creating-files-and-directories--deleted?utm_source=hashnode&utm_medium=feed)

few general ways you can create files and directories in code. Create the create.go file with the following content: package main import ( "os" ) func main() { f, err := os.Create("created.file") if err != nil { panic(err) ...

May 15, 2022 · 2 min read · blog.cloudnativefolks.org  
Updated May 16, 2022  
Read the article

-   [#go](https://hashnode.com/tag/go)

## Written by

[Sangam Biradar](https://hashnode.com/@sangambiradar)

@sangambiradar · India

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

AI Security

DevRel at StackGen | Formerly at Deepfence ,Tenable , Accurics | AWS Community Builder also Docker Community Award Winner at Dockercon2020 | CyberSecurity Innovator of Year 2023 award by Bsides Bangalore | Docker/HashiCorp Meetup Organiser Bangalore &amp; Co-Author of Learn Lightweight Kubernetes with k3s (2019) , Packt Publication &amp; also run Non Profit CloudNativeFolks / CloudSecCorner Community To Empower Free Education reach out me twitterhttps://twitter.com/sangamtwts or just follow on GitHub -&gt; https://github.com/sangam14 for Valuable Resources

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
