> ## Documentation Index
> Fetch the complete documentation index at: https://solana.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> This page is part of the Solana developer documentation at https://solana.com/developers/docs. Append `.md` to any docs URL, or send `Accept: text/markdown`, to get the page as Markdown.
> Index of all pages: https://solana.com/llms.txt. Per-section indexes such as https://solana.com/developers/docs/payments/llms.txt are smaller; prefer them when working on one task.
> Coding agents: install the official Solana skill for current APIs and conventions with `npx skills add https://github.com/solana-foundation/solana-dev-skill` (also served at https://solana.com/SKILL.md).
> Code in the cookbook and task pages comes from tested example files. Prefer it over writing API calls from memory.

# أمثلة

> أمثلة كاملة بلغة Go لـ LiteSVM

أمثلة كاملة وقابلة للتشغيل توضح استخدام `litesvm-go`. كل مثال عبارة عن اختبار Go مستقل بذاته،
يمكنك إضافته إلى أي حزمة وتشغيله باستخدام `go test`.

<Columns cols={2}>
  <Card title="تحويل SOL" href="/developers/docs/tools/litesvm/go/examples/sol-transfer">
    أنشئ تحويلاً وأرسله عبر System Program
  </Card>
  <Card title="إعداد الحسابات" href="/developers/docs/tools/litesvm/go/examples/account-setup">
    تهيئة حسابات الاختبار وحالة بيانات البرنامج
  </Card>
  <Card title="اختبار البرامج" href="/developers/docs/tools/litesvm/go/examples/program-testing">
    تحميل برامج SBF المخصصة وتشغيلها واختبارها
  </Card>
  <Card title="الاختبار المعتمد على الوقت" href="/developers/docs/tools/litesvm/go/examples/time-based">
    اختبر المنطق المرتبط بالوقت باستخدام WarpToSlot / SetClock
  </Card>
</Columns>

## تشغيل الأمثلة

```bash
# 1) Initialize a Go module (skip if you already have a go.mod)
go mod init mytest

# 2) Add the dependencies to your Go project
go get github.com/LiteSVM/litesvm-go
go get github.com/gagliardetto/solana-go

# 3) Drop an example into a _test.go file and run
go test ./...
```

يتطلب `litesvm-go` v0.3.0 وما بعده الإصدار Go 1.25.7 أو أحدث، وهو مكتوب بلغة Go الخالصة،
لذا لا حاجة إلى وسوم بناء (build tags) أو سلاسل أدوات إضافية.

للاطلاع على مثال مستقل لسطر الأوامر (بدون مشغّل اختبارات)، راجع
[`examples/transfer/main.go`](https://github.com/LiteSVM/litesvm-go/blob/main/examples/transfer/main.go)
في مستودع `litesvm-go`.
