MCPcopy Create free account

hub / github.com/alistanis/st / functions

Functions62 in github.com/alistanis/st

↓ 14 callersFunctionProcessBytes
ProcessBytes takes a []byte and filename, and inspects the data, returning that data in another []byte
parse/parse.go:191
↓ 12 callersFunctionSetArgs
SetArgs clears flags and sets os.Args to os.Args[0] (program name) and then to the list of whatever parameters are given after
parse/flags.go:133
↓ 11 callersFunctionCamelCase
CamelCase converts a string to the CamelCase version of it
parse/parse.go:413
↓ 10 callersFunctionFlags
Flags sets up command line bindings, calls flagParse(), and calls verify() to check command line flags
parse/flags.go:72
↓ 9 callersFunctionDefaultOptions
DefaultOptions returns a new *Options with all default values initialized
parse/parse.go:118
↓ 8 callersFunctionSetOptions
SetOptions sets the current options to the options provided. (This is not thread safe if called from a goroutine)
parse/parse.go:131
↓ 5 callersFunctionprocessStructTagRequest
(req *http.Request)
net/handlers.go:22
↓ 4 callersFunctionAndProcessFiles
AndProcessFiles takes a list of paths, iterates over them, stats them, and then inspects source files
parse/parse.go:148
↓ 4 callersFunctionrun
()
main.go:27
↓ 3 callersMethodArgs
Args returns the underlying FlagSet.Args()
parse/parse.go:96
↓ 3 callersFunctionProcessFile
ProcessFile processes a file, returning the processed []byte
parse/parse.go:207
↓ 3 callersFunctionexit
(code int)
main.go:19
↓ 2 callersFunctionInsert
Insert inserts insertData into data at the given start index
parse/parse.go:363
↓ 2 callersFunctionInspect
Inspect visits all nodes in the *ast.File (recursively), performing mutations on the buffer when the type found is an *ast.StructType
parse/parse.go:226
↓ 2 callersFunctionParse
Parse returns an *ast.File, the data parsed, and an error
parse/parse.go:200
↓ 2 callersFunctionPrintf
Printf prints a string depending on verbosity... should be in a debug package?
sterrors/sterrors.go:22
↓ 2 callersFunctionProcess
Process iterates over a []*File, processes the *Files, and returns the resulting []*File and the last error that occurred, if any This function could
parse/parse.go:175
↓ 2 callersFunctionServeMux
()
net/listener.go:9
↓ 2 callersFunctionremoveIndex
removeIndex removes a single index from a string
parse/parse.go:368
↓ 1 callersFunctionAppendStructTag
AppendStructTag adds an additional tag to a struct tag
parse/parse.go:293
↓ 1 callersFunctionDeleteRange
DeleteRange deletes a range from a []byte, returning the new slice
parse/parse.go:358
↓ 1 callersFunctionErrMutuallyExclusiveParameters
ErrMutuallyExclusiveParameters takes two inputs and returns a canned error response
sterrors/sterrors.go:17
↓ 1 callersFunctionFormatFieldName
FormatFieldName formats the field name as either CamelCase or snake_case
parse/parse.go:373
↓ 1 callersFunctionFormatHTTPError
(err error, code int)
sterrors/sterrors.go:33
↓ 1 callersFunctionIsIgnoredField
IsIgnoredField checks if a field is an explicitly ignored field Currently a slice is fine for performance, but we will replace these with maps later.
parse/parse.go:338
↓ 1 callersFunctionIsIgnoredTypeName
IsIgnoredTypeName checks if the name provided is an ignored struct
parse/parse.go:348
↓ 1 callersFunctionNewCommentDirective
NewCommentDirective takes a string (which should be the text from an *ast.Comment), creates a new flag set using the comment as the flag set name with
parse/parse.go:109
↓ 1 callersFunctionOverwriteStructTag
OverwriteStructTag overwrites the struct tag completely
parse/parse.go:301
↓ 1 callersFunctionResetFlags
ResetFlags is a near copy of the flag.ResetForTesting(usage func()) function.
parse/flags.go:128
↓ 1 callersFunctionServeHTTP
(mux *http.ServeMux)
net/listener.go:24
↓ 1 callersFunctionSetVars
SetVars sets up all command line variable bindings
parse/flags.go:65
↓ 1 callersFunctionTagStruct
TagStruct tags a struct based on whether or not it is exported, is ignored, and what flags are provided at runtime
parse/parse.go:252
↓ 1 callersFunctionUnderscore
Underscore will change a string from a camelcased form to a string with underscores. Will change "::" to "/" to maintain compatibility with Rails's un
parse/parse.go:394
↓ 1 callersFunctionboolVars
boolVars sets up all boolean command line variable bindings
parse/flags.go:49
↓ 1 callersFunctiondefaultExitFunc
(code int)
main.go:15
↓ 1 callersFunctionmain
()
main.go:59
↓ 1 callersFunctionparseFile
parseFile reads all file information into a buffer, then creates a token set and parses the file, returning a *ast.File
parse/parse.go:216
↓ 1 callersFunctionstringVars
stringVars sets up all string command line variable bindings
parse/flags.go:39
↓ 1 callersFunctionusage
()
main.go:53
↓ 1 callersFunctionverify
()
parse/flags.go:78
FunctionTestCamelCase
(t *testing.T)
parse/parse_test.go:145
FunctionTestCamelCaseDashed
(t *testing.T)
parse/parse_test.go:440
FunctionTestCamelCaseMixed
(t *testing.T)
parse/parse_test.go:450
FunctionTestCamelCaseSpaced
(t *testing.T)
parse/parse_test.go:420
FunctionTestCamelCaseUnderscored
(t *testing.T)
parse/parse_test.go:430
FunctionTestCamelCased
Below taken from https://github.com/etgryphon/stringUp/blob/master/stringUp_test.go
parse/parse_test.go:410
FunctionTestCrashingMain
This doesn't show up in GoConvey's test coverage, but it actually does allow for full and complete coverage os.Exit() is not a hookable call, and goco
main_test.go:93
FunctionTestErrors
(t *testing.T)
sterrors/sterrors_test.go:28
FunctionTestErrors
(t *testing.T)
parse/parse_test.go:351
FunctionTestFiles
(t *testing.T)
parse/parse_test.go:212
FunctionTestFlagErrors
(t *testing.T)
parse/flags_test.go:83
FunctionTestFlags
(t *testing.T)
parse/flags_test.go:12
FunctionTestGoGenerate
(t *testing.T)
parse/parse_test.go:335
FunctionTestGoGenerateDetection
(t *testing.T)
parse/flags_test.go:65
FunctionTestIgnore
(t *testing.T)
parse/parse_test.go:169
FunctionTestListener
(t *testing.T)
net/listener_test.go:16
FunctionTestRun
(t *testing.T)
main_test.go:40
FunctionTestSnakeCase
(t *testing.T)
parse/parse_test.go:111
FunctionTestStructTagHandler
(t *testing.T)
net/handlers_test.go:41
Functioninit
()
main_test.go:31
Functioninit
()
sterrors/sterrors_test.go:19
Functioninit
()
parse/parse_test.go:102