> ## 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.

# Ví dụ

> Các ví dụ Go hoàn chỉnh cho LiteSVM

Các ví dụ hoàn chỉnh, có thể chạy ngay để minh họa cách dùng `litesvm-go`. Mỗi ví dụ là một
bài kiểm thử Go độc lập, bạn có thể đưa vào một package và chạy bằng `go test`.

<Columns cols={2}>
  <Card title="Chuyển SOL" href="/developers/docs/tools/litesvm/go/examples/sol-transfer">
    Xây dựng và gửi giao dịch chuyển tiền qua System Program
  </Card>
  <Card title="Thiết lập tài khoản" href="/developers/docs/tools/litesvm/go/examples/account-setup">
    Khởi tạo sẵn các tài khoản thử nghiệm và trạng thái dữ liệu chương trình
  </Card>
  <Card title="Kiểm thử chương trình" href="/developers/docs/tools/litesvm/go/examples/program-testing">
    Tải và chạy thử các chương trình SBF tùy chỉnh
  </Card>
  <Card title="Kiểm thử theo thời gian" href="/developers/docs/tools/litesvm/go/examples/time-based">
    Kiểm thử logic phụ thuộc thời gian với WarpToSlot / SetClock
  </Card>
</Columns>

## Chạy các ví dụ

```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 trở lên yêu cầu Go 1.25.7+ và được viết hoàn toàn bằng Go, nên không cần
thêm build tag hay toolchain nào.

Để xem ví dụ dòng lệnh độc lập (không dùng trình chạy kiểm thử), hãy xem
[`examples/transfer/main.go`](https://github.com/LiteSVM/litesvm-go/blob/main/examples/transfer/main.go)
trong repo `litesvm-go`.
