Download goalert/engine/processinglock/config.go from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 387 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/f5071caa249115f3b590492f1c8eb471e02aae4b/goalert/engine/processinglock/config.go
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@f5071caa249115f3b590492f1c8eb471e02aae4b/goalert/engine/processinglock/config.go
-
curl -L -o config.go https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/f5071caa249115f3b590492f1c8eb471e02aae4b/goalert/engine/processinglock/config.go
387 Bytes
| package processinglock | |
| import ( | |
| "fmt" | |
| ) | |
| // Config defines the parameters of the lock. | |
| type Config struct { | |
| Type Type | |
| Version int32 // Version must match the value in engine_processing_versions exactly or no lock will be obtained. | |
| } | |
| // String returns the string representation of Config. | |
| func (cfg Config) String() string { | |
| return fmt.Sprintf("%s:v%d", cfg.Type, cfg.Version) | |
| } | |