fixplurals

command
v0.0.0-...-f5f96ef Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2024 License: BSD-2-Clause Imports: 12 Imported by: 0

README

fixplurals Build Status Coverage Status GoDoc Go Report Card

fixplurals - remove redundant parameter and result types from function signatures


For example, the following function signature:

func fun(a string, b string) (c string, d string)

becomes:

func fun(a, b string) (c, d string)

after applying fixplurals.

Installation

% go get -u github.com/davidrjenni/reftools/cmd/fixplurals

Usage

% fixplurals [-dry] packages

Flags:

-dry: changes are printed to stdout instead of rewriting the source files

Documentation

Overview

Fixplurals removes redundant parameter and result types from function signatures.

For example, the following function signature:

func fun(a string, b string) (c string, d string)

becomes:

func fun(a, b string) (c, d string)

after applying fixplurals.

Usage:

% fixplurals [-dry] packages

Flags:

-dry: changes are printed to stdout instead of rewriting the source files

Jump to

Keyboard shortcuts

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