File tree Expand file tree Collapse file tree 3 files changed +23
-10
lines changed Expand file tree Collapse file tree 3 files changed +23
-10
lines changed Original file line number Diff line number Diff line change 44// Authors: Tong Sun (c) 2017, All rights reserved
55////////////////////////////////////////////////////////////////////////////
66
7+ /*
8+
9+ Package egCal provides generic calculation functionalities.
10+
11+ egCal provides the generic calculation functionalities from
12+
13+ consul template functions
14+ https://github.com/hashicorp/consul-template / template_functions.go
15+
16+ */
17+
718package egCal
819
920import (
Original file line number Diff line number Diff line change 55// https://github.com/hashicorp/consul-template/blob/de2ebf4/template_functions.go#L727-L901
66////////////////////////////////////////////////////////////////////////////
77
8- /*
9-
10- Package egCal provides generic calculation functionalities.
11-
12- egCal provides the generic calculation functionalities from
13- consul template functions
14- https://github.com/hashicorp/consul-template / template_functions.go
15-
16- */
178package egCal
189
1910import (
Original file line number Diff line number Diff line change 44// Authors: Tong Sun (c) 2019, All rights reserved
55////////////////////////////////////////////////////////////////////////////
66
7+ /*
8+
9+ Package egFilePath provides filepath manupilation functionalities.
10+
11+ egFilePath provides filepath manupilation manipulation, provided by "path/filepath".
12+
13+ */
14+
715package egFilePath
816
917import (
@@ -18,7 +26,7 @@ import (
1826////////////////////////////////////////////////////////////////////////////
1927// Constant and data type/structure definitions
2028
21- // EgFilePath -- EasyGen Calculation
29+ // EgFilePath -- EasyGen FilePath manupilation functionalities
2230type EgFilePath struct {
2331 * easygen.EgBase
2432}
@@ -53,6 +61,9 @@ func FuncDefs() template.FuncMap {
5361 return template .FuncMap (egFuncMap )
5462}
5563
64+ //==========================================================================
65+ // support functions
66+
5667func IsDir (path string ) bool {
5768 info , _ := os .Stat (path )
5869 return info .IsDir ()
You can’t perform that action at this time.
0 commit comments