()
| 24 | var _cachedClientID string |
| 25 | |
| 26 | func clientID() string { |
| 27 | if _cachedClientID != "" { |
| 28 | return _cachedClientID |
| 29 | } |
| 30 | |
| 31 | var err error |
| 32 | _cachedClientID, err = files.ReadFile(_clientIDPath) |
| 33 | if err != nil || _cachedClientID == "" { |
| 34 | _cachedClientID = uuid.New().String() |
| 35 | files.WriteFile([]byte(_cachedClientID), _clientIDPath) |
| 36 | } |
| 37 | |
| 38 | return _cachedClientID |
| 39 | } |
no test coverage detected