---
title: "Discussion on \"Go cheatsheet - Flag\" | Hashnode"
description: "Discussion on \"Go cheatsheet - Flag\". Flag\npackage main\n\nimport (\n    \"flag\"\n    \"fmt\"\n)\n\nfunc main() {\n    count := flag.Int(\"count\", 0, \"run time count\")\n    prefix := flag.String(\"prefix\", \"\", \"install path\")\n    dryrun := flag.Bool(\"dryrun\", true, \"dry run program\")\n\n    flag.Parse()..."
url: "https://hashnode.com/posts/go-cheatsheet-flag/607e4f86eb2bd30d2d22a3dd"
---

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

Discussion

# [Go cheatsheet - Flag](https://hn.0xbf.me/go-cheatsheet-flag?utm_source=hashnode&utm_medium=feed)

Flag package main import ( "flag" "fmt" ) func main() { count := flag.Int("count", 0, "run time count") prefix := flag.String("prefix", "", "install path") dryrun := flag.Bool("dryrun", true, "dry run program") flag.Parse()...

Apr 20, 2021 · 1 min read · hn.0xbf.me  
Read the article

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

## Written by

[0xBF](https://hashnode.com/@0xbf)

@0xbf

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
