Skip to content

Commit

Permalink
update go mod
Browse files Browse the repository at this point in the history
  • Loading branch information
vipally committed Feb 19, 2021
1 parent df97450 commit 394185a
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 12 deletions.
8 changes: 4 additions & 4 deletions cmd/gogp/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,10 @@ func main() {
cmdline.BoolVar(&debug, "d", "debug", debug, false, "Debug mode.")
cmdline.BoolVar(&removeProductsOnly, "remove", "remove", removeProductsOnly, false, "Only remove all products.")

cmdline.AnotherName("ext", "e")
cmdline.AnotherName("force", "f")
cmdline.AnotherName("more", "m")
cmdline.AnotherName("debug", "d")
// cmdline.AnotherName("ext", "e")
// cmdline.AnotherName("force", "f")
// cmdline.AnotherName("more", "m")
// cmdline.AnotherName("debug", "d")
cmdline.Parse()

gogp.RemoveProductsOnly(removeProductsOnly)
Expand Down
2 changes: 1 addition & 1 deletion examples/gp/functorcmp.gp.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ package gp
//#GOGP_IGNORE_BEGIN ///gogp_file_begin
//
/* //This line can be uncommented to disable all this file, and it doesn't effect to the .gp file
// //If test or change .gp file required, comment it to modify and cmomile as normal go file
// //If test or change .gp file required, comment it to modify and compile as normal go file
//
// This is a fake go code file
// It is used to generate .gp file by gogp tool
Expand Down
2 changes: 1 addition & 1 deletion examples/gp/list.gp.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package gp
//#GOGP_IGNORE_BEGIN ///gogp_file_begin
//
/* //This line can be uncommented to disable all this file, and it doesn't effect to the .gp file
// //If test or change .gp file required, comment it to modify and cmomile as normal go file
// //If test or change .gp file required, comment it to modify and compile as normal go file
//
// This is a fake go code file
// It is used to generate .gp file by gogp tool
Expand Down
11 changes: 11 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module gogp

go 1.15

require (
github.com/vipally/cmdline v0.0.0-20200404124829-ea1e34f654ec
github.com/vipally/cpright v0.0.0-20161005151456-25b84bafd267
github.com/vipally/gogp v0.0.0-20170420075522-df97450d9feb
)

replace github.com/vipally/gogp => ./
6 changes: 6 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
github.com/vipally/cmdline v0.0.0-20200404124829-ea1e34f654ec h1:idgc5yK/DeUQX5tpHx4Sp57Yc/jQcM1gnxtuNvkspRQ=
github.com/vipally/cmdline v0.0.0-20200404124829-ea1e34f654ec/go.mod h1:k4n5DFrZkuMWGOCsKFmyh62BTyOPLDZfTgQ1G1oF8eU=
github.com/vipally/cpright v0.0.0-20161005151456-25b84bafd267 h1:LRBXTIiz2aSUToCnNvdoRLXsr4GT0y5DO+517BnGpEE=
github.com/vipally/cpright v0.0.0-20161005151456-25b84bafd267/go.mod h1:aJJYawBeNQW7cRYDlxJRRZMNrBqL4oIQhIKFBJhvhF8=
github.com/vipally/gogp v0.0.0-20170420075522-df97450d9feb h1:D3j7vUCgjgQCMVjyYuTxnwX2EzzUjirdLOvjEYkjOoA=
github.com/vipally/gogp v0.0.0-20170420075522-df97450d9feb/go.mod h1:jM4O87t7N31BvQvO4kXhDGgM2CRKg9GS2eE6pkdc5Lc=
11 changes: 6 additions & 5 deletions lib/fakedef.gp
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,25 @@
// !!!!!!!!!!!! NEVER MODIFY THIS FILE MANUALLY !!!!!!!!!!!!
//
// This file was auto-generated by tool [github.com/vipally/gogp]
// Last update at: [Sat Apr 01 2017 22:48:08]
// Last update at: [Fri Feb 19 2021 13:23:27]
// Generate from:
// [github.com/vipally/gogp/lib/fakedef.gp.go]
// [github.com/vipally/gogp/lib/lib.gpg] [GOGP_REVERSE_fakedef]
// [github.com/os/gogp/lib/fakedef.gp.go]
// [github.com/os/gogp/lib/lib.gpg] [GOGP_REVERSE_fakedef]
//
// Tool [github.com/vipally/gogp] info:
// CopyRight 2016 @Ally Dale. All rights reserved.
// Author : Ally Dale([email protected])
// Blog : http://blog.csdn.net/vipally
// Site : https://github.com/vipally
// BuildAt :
// BuildAt : <buildtime>
// Version : 3.0.0.final
//
///////////////////////////////////////////////////////////////////
//#GOGP_IGNORE_END

//#GOGP_IFDEF GOGP_DO_NOT_HAS_THIS_DEFINE__
//this is a fake types for other gp file //#GOGP_ENDIF
//this is a fake types for other gp file
//#GOGP_ENDIF

//these defines are used to make sure this fake go file can be compiled correctlly
//and they will be removed from real go files
Expand Down
2 changes: 1 addition & 1 deletion lib/fakedef.gp.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ package gp
//#GOGP_IGNORE_BEGIN ///gogp_file_begin
//
/* //This line can be uncommented to disable all this file, and it doesn't effect to the .gp file
// //If test or change .gp file required, comment it to modify and cmomile as normal go file
// //If test or change .gp file required, comment it to modify and compile as normal go file
//
// This is a fake go code file
// It is used to generate .gp file by gogp tool
Expand Down

0 comments on commit 394185a

Please sign in to comment.