├── .github ├── dependabot.yml └── workflows │ ├── fossa.yml │ ├── go.yml │ └── release.yml ├── .gitignore ├── .goreleaser.yml ├── CHANGELOG.md ├── LICENSE ├── Makefile ├── README.md ├── docs ├── Appendix.md ├── HACKING.md ├── PatchesInDepth.md └── RELEASE.md ├── e2e_test.go ├── examples ├── destutter.patch ├── gomock-v1.5.0.patch ├── s1012.patch ├── s1028.patch └── s1038.patch ├── go.mod ├── go.sum ├── internal ├── astdiff │ ├── diff.go │ └── snapshot.go ├── data │ ├── data.go │ └── data_test.go ├── diff │ └── diff.go ├── engine │ ├── change.go │ ├── changelog.go │ ├── compile.go │ ├── file.go │ ├── file_test.go │ ├── for_dots.go │ ├── for_dots_test.go │ ├── import.go │ ├── matcher.go │ ├── matcher_test.go │ ├── meta.go │ ├── meta_test.go │ ├── metavar.go │ ├── metavar_test.go │ ├── pos.go │ ├── reflect_match.go │ ├── reflect_match_test.go │ ├── reflect_replace.go │ ├── reflect_replace_test.go │ ├── replacer.go │ ├── search.go │ ├── slice_dots.go │ ├── stmt_list.go │ ├── stmt_list_test.go │ ├── util.go │ └── utils_for_test.go ├── goast │ ├── imports.go │ ├── imports_test.go │ ├── pos.go │ ├── pos_test.go │ └── types.go ├── parse │ ├── ast.go │ ├── change.go │ ├── doc.go │ ├── meta.go │ ├── meta_test.go │ ├── parse.go │ ├── patch.go │ ├── patch_test.go │ └── section │ │ ├── bytes.go │ │ ├── bytes_test.go │ │ ├── section.go │ │ └── section_test.go ├── pgo │ ├── ast.go │ ├── augment.go │ ├── augment │ │ ├── augment.go │ │ ├── augment_test.go │ │ ├── find.go │ │ └── rewrite.go │ ├── doc.go │ ├── parse.go │ └── parse_test.go └── text │ └── unlines.go ├── loader.go ├── loader_test.go ├── main.go ├── main_test.go ├── patch └── gopatch.go ├── testdata ├── README.md ├── add_ctx_param ├── add_error_param ├── add_iface_return ├── case_elision ├── const_to_var ├── dedupe_args ├── defer_return ├── delete_any_import ├── delete_dots ├── delete_field ├── delete_import_panic ├── delete_struct_field ├── delete_unnamed_import ├── destutter ├── dts_in_args ├── dts_in_receiver ├── dts_in_results ├── embed_to_field ├── embed_to_newtype ├── foo_call_to_bar ├── func_within_a_func ├── generic_instantiation ├── generics_in_src ├── gomock ├── httpclient_use_ctx ├── if_to_for ├── import_grouping ├── inline_err_assignments ├── inline_errors ├── match_named_import ├── matches_test_files ├── mismatched_dots ├── name_and_rewrite_unnamed_import ├── name_unnamed_import ├── nil_safe_string ├── noop_import ├── optimize_string_appends ├── patch │ ├── error.patch │ ├── replace_to_with_ptr.patch │ └── time.patch ├── range_value_elision ├── recognize_all_imports ├── redundant_fmt_errorf ├── redundant_fmt_sprintf ├── remove_context_field ├── rename_named_import ├── rename_package ├── rename_unnamed_import ├── replace_any_import_with_unnamed ├── replace_import_with_top_level_comment ├── replace_net_context ├── replace_with_time_since ├── return_err ├── rewrite_import_paths ├── s1012 ├── s1028 ├── s1038 ├── select_elision ├── slice_and_import ├── stmt_to_expr ├── string_builder_for_loop ├── string_repeat ├── struct_decl_field_rename ├── struct_field_list ├── struct_field_pair ├── struct_init_field_rename ├── switch_elision ├── test_files │ ├── diff_example │ │ └── error.go │ ├── lint_example │ │ └── time.go │ ├── skip_generated_files │ │ ├── simple_generated.go │ │ └── special_notation_generated.go │ └── skip_import_processing_example │ │ └── test1.go ├── type_to_alias ├── undo_expr_patch ├── unnamed_import_to_named ├── value_group ├── value_group_elision ├── value_list_elision └── writebytes_to_write ├── tools ├── cmd │ └── extract-changelog │ │ ├── main.go │ │ └── main_test.go ├── go.mod ├── go.sum └── tools.go └── version.go /.github/dependabot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/.github/dependabot.yml -------------------------------------------------------------------------------- /.github/workflows/fossa.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/.github/workflows/fossa.yml -------------------------------------------------------------------------------- /.github/workflows/go.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/.github/workflows/go.yml -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/.github/workflows/release.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/.gitignore -------------------------------------------------------------------------------- /.goreleaser.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/.goreleaser.yml -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/LICENSE -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/README.md -------------------------------------------------------------------------------- /docs/Appendix.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/docs/Appendix.md -------------------------------------------------------------------------------- /docs/HACKING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/docs/HACKING.md -------------------------------------------------------------------------------- /docs/PatchesInDepth.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/docs/PatchesInDepth.md -------------------------------------------------------------------------------- /docs/RELEASE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/docs/RELEASE.md -------------------------------------------------------------------------------- /e2e_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/e2e_test.go -------------------------------------------------------------------------------- /examples/destutter.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/examples/destutter.patch -------------------------------------------------------------------------------- /examples/gomock-v1.5.0.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/examples/gomock-v1.5.0.patch -------------------------------------------------------------------------------- /examples/s1012.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/examples/s1012.patch -------------------------------------------------------------------------------- /examples/s1028.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/examples/s1028.patch -------------------------------------------------------------------------------- /examples/s1038.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/examples/s1038.patch -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/go.mod -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/go.sum -------------------------------------------------------------------------------- /internal/astdiff/diff.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/internal/astdiff/diff.go -------------------------------------------------------------------------------- /internal/astdiff/snapshot.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/internal/astdiff/snapshot.go -------------------------------------------------------------------------------- /internal/data/data.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/internal/data/data.go -------------------------------------------------------------------------------- /internal/data/data_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/internal/data/data_test.go -------------------------------------------------------------------------------- /internal/diff/diff.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/internal/diff/diff.go -------------------------------------------------------------------------------- /internal/engine/change.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/internal/engine/change.go -------------------------------------------------------------------------------- /internal/engine/changelog.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/internal/engine/changelog.go -------------------------------------------------------------------------------- /internal/engine/compile.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/internal/engine/compile.go -------------------------------------------------------------------------------- /internal/engine/file.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/internal/engine/file.go -------------------------------------------------------------------------------- /internal/engine/file_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/internal/engine/file_test.go -------------------------------------------------------------------------------- /internal/engine/for_dots.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/internal/engine/for_dots.go -------------------------------------------------------------------------------- /internal/engine/for_dots_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/internal/engine/for_dots_test.go -------------------------------------------------------------------------------- /internal/engine/import.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/internal/engine/import.go -------------------------------------------------------------------------------- /internal/engine/matcher.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/internal/engine/matcher.go -------------------------------------------------------------------------------- /internal/engine/matcher_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/internal/engine/matcher_test.go -------------------------------------------------------------------------------- /internal/engine/meta.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/internal/engine/meta.go -------------------------------------------------------------------------------- /internal/engine/meta_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/internal/engine/meta_test.go -------------------------------------------------------------------------------- /internal/engine/metavar.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/internal/engine/metavar.go -------------------------------------------------------------------------------- /internal/engine/metavar_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/internal/engine/metavar_test.go -------------------------------------------------------------------------------- /internal/engine/pos.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/internal/engine/pos.go -------------------------------------------------------------------------------- /internal/engine/reflect_match.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/internal/engine/reflect_match.go -------------------------------------------------------------------------------- /internal/engine/reflect_match_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/internal/engine/reflect_match_test.go -------------------------------------------------------------------------------- /internal/engine/reflect_replace.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/internal/engine/reflect_replace.go -------------------------------------------------------------------------------- /internal/engine/reflect_replace_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/internal/engine/reflect_replace_test.go -------------------------------------------------------------------------------- /internal/engine/replacer.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/internal/engine/replacer.go -------------------------------------------------------------------------------- /internal/engine/search.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/internal/engine/search.go -------------------------------------------------------------------------------- /internal/engine/slice_dots.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/internal/engine/slice_dots.go -------------------------------------------------------------------------------- /internal/engine/stmt_list.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/internal/engine/stmt_list.go -------------------------------------------------------------------------------- /internal/engine/stmt_list_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/internal/engine/stmt_list_test.go -------------------------------------------------------------------------------- /internal/engine/util.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/internal/engine/util.go -------------------------------------------------------------------------------- /internal/engine/utils_for_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/internal/engine/utils_for_test.go -------------------------------------------------------------------------------- /internal/goast/imports.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/internal/goast/imports.go -------------------------------------------------------------------------------- /internal/goast/imports_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/internal/goast/imports_test.go -------------------------------------------------------------------------------- /internal/goast/pos.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/internal/goast/pos.go -------------------------------------------------------------------------------- /internal/goast/pos_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/internal/goast/pos_test.go -------------------------------------------------------------------------------- /internal/goast/types.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/internal/goast/types.go -------------------------------------------------------------------------------- /internal/parse/ast.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/internal/parse/ast.go -------------------------------------------------------------------------------- /internal/parse/change.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/internal/parse/change.go -------------------------------------------------------------------------------- /internal/parse/doc.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/internal/parse/doc.go -------------------------------------------------------------------------------- /internal/parse/meta.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/internal/parse/meta.go -------------------------------------------------------------------------------- /internal/parse/meta_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/internal/parse/meta_test.go -------------------------------------------------------------------------------- /internal/parse/parse.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/internal/parse/parse.go -------------------------------------------------------------------------------- /internal/parse/patch.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/internal/parse/patch.go -------------------------------------------------------------------------------- /internal/parse/patch_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/internal/parse/patch_test.go -------------------------------------------------------------------------------- /internal/parse/section/bytes.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/internal/parse/section/bytes.go -------------------------------------------------------------------------------- /internal/parse/section/bytes_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/internal/parse/section/bytes_test.go -------------------------------------------------------------------------------- /internal/parse/section/section.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/internal/parse/section/section.go -------------------------------------------------------------------------------- /internal/parse/section/section_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/internal/parse/section/section_test.go -------------------------------------------------------------------------------- /internal/pgo/ast.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/internal/pgo/ast.go -------------------------------------------------------------------------------- /internal/pgo/augment.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/internal/pgo/augment.go -------------------------------------------------------------------------------- /internal/pgo/augment/augment.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/internal/pgo/augment/augment.go -------------------------------------------------------------------------------- /internal/pgo/augment/augment_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/internal/pgo/augment/augment_test.go -------------------------------------------------------------------------------- /internal/pgo/augment/find.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/internal/pgo/augment/find.go -------------------------------------------------------------------------------- /internal/pgo/augment/rewrite.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/internal/pgo/augment/rewrite.go -------------------------------------------------------------------------------- /internal/pgo/doc.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/internal/pgo/doc.go -------------------------------------------------------------------------------- /internal/pgo/parse.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/internal/pgo/parse.go -------------------------------------------------------------------------------- /internal/pgo/parse_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/internal/pgo/parse_test.go -------------------------------------------------------------------------------- /internal/text/unlines.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/internal/text/unlines.go -------------------------------------------------------------------------------- /loader.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/loader.go -------------------------------------------------------------------------------- /loader_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/loader_test.go -------------------------------------------------------------------------------- /main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/main.go -------------------------------------------------------------------------------- /main_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/main_test.go -------------------------------------------------------------------------------- /patch/gopatch.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/patch/gopatch.go -------------------------------------------------------------------------------- /testdata/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/testdata/README.md -------------------------------------------------------------------------------- /testdata/add_ctx_param: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/testdata/add_ctx_param -------------------------------------------------------------------------------- /testdata/add_error_param: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/testdata/add_error_param -------------------------------------------------------------------------------- /testdata/add_iface_return: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/testdata/add_iface_return -------------------------------------------------------------------------------- /testdata/case_elision: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/testdata/case_elision -------------------------------------------------------------------------------- /testdata/const_to_var: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/testdata/const_to_var -------------------------------------------------------------------------------- /testdata/dedupe_args: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/testdata/dedupe_args -------------------------------------------------------------------------------- /testdata/defer_return: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/testdata/defer_return -------------------------------------------------------------------------------- /testdata/delete_any_import: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/testdata/delete_any_import -------------------------------------------------------------------------------- /testdata/delete_dots: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/testdata/delete_dots -------------------------------------------------------------------------------- /testdata/delete_field: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/testdata/delete_field -------------------------------------------------------------------------------- /testdata/delete_import_panic: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/testdata/delete_import_panic -------------------------------------------------------------------------------- /testdata/delete_struct_field: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/testdata/delete_struct_field -------------------------------------------------------------------------------- /testdata/delete_unnamed_import: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/testdata/delete_unnamed_import -------------------------------------------------------------------------------- /testdata/destutter: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/testdata/destutter -------------------------------------------------------------------------------- /testdata/dts_in_args: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/testdata/dts_in_args -------------------------------------------------------------------------------- /testdata/dts_in_receiver: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/testdata/dts_in_receiver -------------------------------------------------------------------------------- /testdata/dts_in_results: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/testdata/dts_in_results -------------------------------------------------------------------------------- /testdata/embed_to_field: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/testdata/embed_to_field -------------------------------------------------------------------------------- /testdata/embed_to_newtype: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/testdata/embed_to_newtype -------------------------------------------------------------------------------- /testdata/foo_call_to_bar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/testdata/foo_call_to_bar -------------------------------------------------------------------------------- /testdata/func_within_a_func: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/testdata/func_within_a_func -------------------------------------------------------------------------------- /testdata/generic_instantiation: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/testdata/generic_instantiation -------------------------------------------------------------------------------- /testdata/generics_in_src: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/testdata/generics_in_src -------------------------------------------------------------------------------- /testdata/gomock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/testdata/gomock -------------------------------------------------------------------------------- /testdata/httpclient_use_ctx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/testdata/httpclient_use_ctx -------------------------------------------------------------------------------- /testdata/if_to_for: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/testdata/if_to_for -------------------------------------------------------------------------------- /testdata/import_grouping: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/testdata/import_grouping -------------------------------------------------------------------------------- /testdata/inline_err_assignments: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/testdata/inline_err_assignments -------------------------------------------------------------------------------- /testdata/inline_errors: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/testdata/inline_errors -------------------------------------------------------------------------------- /testdata/match_named_import: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/testdata/match_named_import -------------------------------------------------------------------------------- /testdata/matches_test_files: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/testdata/matches_test_files -------------------------------------------------------------------------------- /testdata/mismatched_dots: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/testdata/mismatched_dots -------------------------------------------------------------------------------- /testdata/name_and_rewrite_unnamed_import: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/testdata/name_and_rewrite_unnamed_import -------------------------------------------------------------------------------- /testdata/name_unnamed_import: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/testdata/name_unnamed_import -------------------------------------------------------------------------------- /testdata/nil_safe_string: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/testdata/nil_safe_string -------------------------------------------------------------------------------- /testdata/noop_import: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/testdata/noop_import -------------------------------------------------------------------------------- /testdata/optimize_string_appends: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/testdata/optimize_string_appends -------------------------------------------------------------------------------- /testdata/patch/error.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/testdata/patch/error.patch -------------------------------------------------------------------------------- /testdata/patch/replace_to_with_ptr.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/testdata/patch/replace_to_with_ptr.patch -------------------------------------------------------------------------------- /testdata/patch/time.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/testdata/patch/time.patch -------------------------------------------------------------------------------- /testdata/range_value_elision: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/testdata/range_value_elision -------------------------------------------------------------------------------- /testdata/recognize_all_imports: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/testdata/recognize_all_imports -------------------------------------------------------------------------------- /testdata/redundant_fmt_errorf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/testdata/redundant_fmt_errorf -------------------------------------------------------------------------------- /testdata/redundant_fmt_sprintf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/testdata/redundant_fmt_sprintf -------------------------------------------------------------------------------- /testdata/remove_context_field: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/testdata/remove_context_field -------------------------------------------------------------------------------- /testdata/rename_named_import: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/testdata/rename_named_import -------------------------------------------------------------------------------- /testdata/rename_package: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/testdata/rename_package -------------------------------------------------------------------------------- /testdata/rename_unnamed_import: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/testdata/rename_unnamed_import -------------------------------------------------------------------------------- /testdata/replace_any_import_with_unnamed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/testdata/replace_any_import_with_unnamed -------------------------------------------------------------------------------- /testdata/replace_import_with_top_level_comment: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/testdata/replace_import_with_top_level_comment -------------------------------------------------------------------------------- /testdata/replace_net_context: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/testdata/replace_net_context -------------------------------------------------------------------------------- /testdata/replace_with_time_since: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/testdata/replace_with_time_since -------------------------------------------------------------------------------- /testdata/return_err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/testdata/return_err -------------------------------------------------------------------------------- /testdata/rewrite_import_paths: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/testdata/rewrite_import_paths -------------------------------------------------------------------------------- /testdata/s1012: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/testdata/s1012 -------------------------------------------------------------------------------- /testdata/s1028: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/testdata/s1028 -------------------------------------------------------------------------------- /testdata/s1038: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/testdata/s1038 -------------------------------------------------------------------------------- /testdata/select_elision: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/testdata/select_elision -------------------------------------------------------------------------------- /testdata/slice_and_import: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/testdata/slice_and_import -------------------------------------------------------------------------------- /testdata/stmt_to_expr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/testdata/stmt_to_expr -------------------------------------------------------------------------------- /testdata/string_builder_for_loop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/testdata/string_builder_for_loop -------------------------------------------------------------------------------- /testdata/string_repeat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/testdata/string_repeat -------------------------------------------------------------------------------- /testdata/struct_decl_field_rename: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/testdata/struct_decl_field_rename -------------------------------------------------------------------------------- /testdata/struct_field_list: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/testdata/struct_field_list -------------------------------------------------------------------------------- /testdata/struct_field_pair: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/testdata/struct_field_pair -------------------------------------------------------------------------------- /testdata/struct_init_field_rename: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/testdata/struct_init_field_rename -------------------------------------------------------------------------------- /testdata/switch_elision: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/testdata/switch_elision -------------------------------------------------------------------------------- /testdata/test_files/diff_example/error.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/testdata/test_files/diff_example/error.go -------------------------------------------------------------------------------- /testdata/test_files/lint_example/time.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/testdata/test_files/lint_example/time.go -------------------------------------------------------------------------------- /testdata/test_files/skip_generated_files/simple_generated.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/testdata/test_files/skip_generated_files/simple_generated.go -------------------------------------------------------------------------------- /testdata/test_files/skip_generated_files/special_notation_generated.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/testdata/test_files/skip_generated_files/special_notation_generated.go -------------------------------------------------------------------------------- /testdata/test_files/skip_import_processing_example/test1.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/testdata/test_files/skip_import_processing_example/test1.go -------------------------------------------------------------------------------- /testdata/type_to_alias: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/testdata/type_to_alias -------------------------------------------------------------------------------- /testdata/undo_expr_patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/testdata/undo_expr_patch -------------------------------------------------------------------------------- /testdata/unnamed_import_to_named: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/testdata/unnamed_import_to_named -------------------------------------------------------------------------------- /testdata/value_group: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/testdata/value_group -------------------------------------------------------------------------------- /testdata/value_group_elision: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/testdata/value_group_elision -------------------------------------------------------------------------------- /testdata/value_list_elision: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/testdata/value_list_elision -------------------------------------------------------------------------------- /testdata/writebytes_to_write: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/testdata/writebytes_to_write -------------------------------------------------------------------------------- /tools/cmd/extract-changelog/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/tools/cmd/extract-changelog/main.go -------------------------------------------------------------------------------- /tools/cmd/extract-changelog/main_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/tools/cmd/extract-changelog/main_test.go -------------------------------------------------------------------------------- /tools/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/tools/go.mod -------------------------------------------------------------------------------- /tools/go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/tools/go.sum -------------------------------------------------------------------------------- /tools/tools.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/tools/tools.go -------------------------------------------------------------------------------- /version.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/uber-go/gopatch/HEAD/version.go --------------------------------------------------------------------------------