Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alexandre-normand/safekeeper
/ functions
Functions
15 in github.com/alexandre-normand/safekeeper
⨍
Functions
15
◇
Types & classes
1
↓ 5 callers
Function
run
(keys string, out string, inputPaths []string)
safekeeper.go:42
↓ 4 callers
Function
writeGenerationDriverFile
writeGenerationDriverFile writes a file that drives the safekeeper generation (i.e. the go file that would include the go:generate command)
safekeeper_test.go:156
↓ 4 callers
Method
writeString
(value string)
safekeeper.go:26
↓ 3 callers
Function
writeTestTemplate
writeTestTemplate writes a .safekeeper template file with two ENV variables: CLIENT_ID and CLIENT_SECRET
safekeeper_test.go:145
↓ 1 callers
Function
isFile
isFile reports whether the named file is a file (not a directory).
safekeeper.go:91
↓ 1 callers
Function
loadKeyValues
loadKeyValues loads all values for the keys specified via the command-line flag
safekeeper.go:77
↓ 1 callers
Function
openTemplateFile
openTemplateFile opens the template source for the current file (by appending .safekeeper to the path)
safekeeper.go:130
↓ 1 callers
Function
setupReplacers
setupReplacers creates a string replacer for each key/value pair
safekeeper.go:150
↓ 1 callers
Function
substituteValues
substituteValues replaces all occurences of keys in the source file by the env value of that key
safekeeper.go:101
↓ 1 callers
Function
writeHeader
writeHeader writes the header of the file (code generation warning as well as the go:generate line)
safekeeper.go:137
Function
Example
()
safekeeper_test.go:112
Function
TestMissingEnvVariable
(t *testing.T)
safekeeper_test.go:12
Function
TestMissingSafekeeperFile
(t *testing.T)
safekeeper_test.go:35
Function
TestValidCase
(t *testing.T)
safekeeper_test.go:56
Function
main
()
safekeeper.go:33