Örnekler

Eksiksiz, çalıştırılabilir litesvm-go örnekleri. Her örnek, bir pakete ekleyip go test ile çalıştırabileceğiniz bağımsız bir Go testidir.

Örnekleri Çalıştırma

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

Alpine / musl üzerinde, doğru satıcı arşivinin bağlanması için go test çağrınıza -tags musl ekleyin.

Bağımsız bir komut satırı örneği için (test çalıştırıcısı olmadan) litesvm-go deposundaki examples/transfer/main.go dosyasına bakın.

Is this page helpful?

İçindekiler

Sayfayı Düzenle
© 2026 Solana Vakfı. Tüm hakları saklıdır.