Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP]kadai3-2 by itosho #38

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file added kadai3/itosho/gownload/.gitkeep
Empty file.
27 changes: 27 additions & 0 deletions kadai3/itosho/gownload/main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
package main

import (
"flag"
"fmt"
"log"
"os"
)

func main() {
flag.Usage = usage
flag.Parse()

if flag.NArg() != 1 {
log.Fatal("Invalid Args. Please specify url.")
}
args := flag.Args()
url := args[0]

print(url)
}

func usage() {
fmt.Println("usage: gownload [url]")
flag.PrintDefaults()
os.Exit(0)
}