MCPcopy Index your code
hub / github.com/apache/devlake / getStringField

Function getStringField

backend/plugins/q_dev/tasks/s3_data_extractor.go:243–249  ·  view source on GitHub ↗

getStringField returns the string value for a field, or empty string if not found

(fieldMap map[string]string, field string)

Source from the content-addressed store, hash-verified

241
242// getStringField returns the string value for a field, or empty string if not found
243func getStringField(fieldMap map[string]string, field string) string {
244 value, ok := fieldMap[field]
245 if !ok {
246 return ""
247 }
248 return value
249}
250
251// parseFloat extracts a float64 from the field map, returning 0 if missing or invalid
252func parseFloat(fieldMap map[string]string, field string) float64 {

Callers 1

createUserReportDataFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected