Add complete Go SDK implementation with all 13 API functions: - ExecuteCode: Execute code synchronously - ExecuteAsync: Execute code asynchronously - GetJob: Get job status - WaitForJob: Poll job with exponential backoff - CancelJob: Cancel running job - ListJobs: List all jobs - GetLanguages: Get supported languages (1-hour cache) - DetectLanguage: Detect language from filename extension - SessionSnapshot: Create session snapshot (NEW) - ServiceSnapshot: Create service snapshot (NEW) - ListSnapshots: List all snapshots (NEW) - RestoreSnapshot: Restore from snapshot (NEW) - DeleteSnapshot: Delete snapshot (NEW) Features: - Standard Go conventions (PascalCase exports) - 4-tier credentials resolution (ResolveCredentials) - HMAC-SHA256 using crypto/hmac and crypto/sha256 - Exponential backoff with time.Sleep - Languages cache in ~/.unsandbox/languages.json (1-hour TTL) - Comprehensive error handling with custom CredentialsError type - Full documentation comments for all exported functions |
||
|---|---|---|
| .. | ||
| go/sync/src | ||
| javascript/sync/src | ||
| python | ||