Git Product home page Git Product logo

gorename's Introduction

gorename

English Document

gorename是一个修改 golang 包名的小工具

安装和使用

要使用gorename首先需要安装 golang,并且配置环境变量 $GOPATH$GOBIN,然后就可以执行以下命令安装:

go get github.com/yushuailiu/gorename

现在就可以使用 gorename 了,比如你想要把目录/user/code/test下的所有文件包含的包名 old/package/name 修改为 new/package/name那么执行以下 命令即可:

gorename --source /user/code/test old/package/name new/package/name

你也可以执行 gorename --help 查看帮助文档:

$ gorename --help                                                                                                                                                           [17:14:31]
NAME:
   gorename - Rename golang package

USAGE:
   main [global options] command [command options] [source file or directory path] [old package name] [new package name]

VERSION:
   0.0.1

AUTHOR:
   YuShuai Liu <[email protected]>

COMMANDS:
     help, h  Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --source value, -s value  source package path or file path (default: "./")
   --help, -h                show help
   --version, -v             print the version

gorename's People

Contributors

yushuailiu avatar

Stargazers

 avatar Panda avatar  avatar  avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.