File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 7
7
"github.com/sertangulveren/sypher/internal/utils"
8
8
)
9
9
10
- var Cred * procs.Sypher
10
+ var cred * procs.Sypher
11
11
12
12
var fs * embed.FS
13
13
@@ -23,22 +23,22 @@ func RegisterFS(projectFs *embed.FS) {
23
23
// Load to make ready to use sypher
24
24
func Load (config ... Config ) {
25
25
if len (config ) == 0 {
26
- Cred = procs .NewSypher ()
26
+ cred = procs .NewSypher ()
27
27
} else {
28
28
cfg := config [0 ]
29
- Cred = & procs.Sypher {
29
+ cred = & procs.Sypher {
30
30
Name : cfg .Name ,
31
31
Key : cfg .Key ,
32
32
}
33
33
}
34
34
35
- Cred .Prepare ()
35
+ cred .Prepare ()
36
36
}
37
37
38
38
// Get provides the string value of key
39
39
func Get (configKey string ) string {
40
- if ! Cred .Ready {
40
+ if ! cred .Ready {
41
41
utils .PanicWithError (errors .New ("sypher is not ready" ))
42
42
}
43
- return string (Cred .Data [configKey ])
43
+ return string (cred .Data [configKey ])
44
44
}
You can’t perform that action at this time.
0 commit comments