Skip to content

Commit eb5b6aa

Browse files
committed
- [+] add egFilePath pkg doc
1 parent 141dd60 commit eb5b6aa

File tree

3 files changed

+23
-10
lines changed

3 files changed

+23
-10
lines changed

egCal/EgCal.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,17 @@
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+
718
package egCal
819

920
import (

egCal/consul-template_functions.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,6 @@
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-
*/
178
package egCal
189

1910
import (

egFilePath/EgFilePath.go

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@
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+
715
package egFilePath
816

917
import (
@@ -18,7 +26,7 @@ import (
1826
////////////////////////////////////////////////////////////////////////////
1927
// Constant and data type/structure definitions
2028

21-
// EgFilePath -- EasyGen Calculation
29+
// EgFilePath -- EasyGen FilePath manupilation functionalities
2230
type 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+
5667
func IsDir(path string) bool {
5768
info, _ := os.Stat(path)
5869
return info.IsDir()

0 commit comments

Comments
 (0)