leetcode-init

command module
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 7, 2018 License: MIT Imports: 4 Imported by: 0

README

leetcode-init

A tool to creates leetcode code template via cli.

Version Build Status Go Report Card License GoDoc FOSSA Status

Install

go get -u github.com/WindomZ/leetcode-init/...

Usage

Take the first problem(1. Two Sum) for example:

leetcode-init -k 1
# or
leetcode-init -k two-sum
# or
leetcode-init -k 'Two Sum'
# or
leetcode-init -u 'https://leetcode.com/problems/two-sum'

Then, a directory(name twosum) is generated under the current path.

.
└── twosum
    ├── README.md
    ├── twosum.go
    └── twosum_test.go

If with -m TEMPLATE.md:

leetcode-init -t two-sum -m TEMPLATE.md

loads TEMPLATE.md file and renders it in the directory.

.
└── twosum
    ├── README.md
    ├── TEMPLATE.md
    ├── twosum.go
    └── twosum_test.go

Contributing

Welcome to pull requests, report bugs, suggest ideas and discuss leetcode-init on issues page.

If you like it then you can put a ⭐ on it.

Roadmap

  • Support Golang.
  • Support JavaScript.
  • Support Python.

License

MIT

FOSSA Status

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL