Discover Packages
github.com/gagliardetto/anchor-go
command
module
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: Jul 2, 2025
License: MIT
Opens a new window with license information.
Imports: 12
Opens a new window with list of imports.
Imported by: 0 modules, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
README
README
¶
anchor-go
usage
# Install anchor-go
go install github.com/gagliardetto/anchor-go@latest
# Generate code from an IDL file
anchor-go --idl /path/to/idl.json --output ./generated --program-id 0123456789abcdef0123456789abcdef0123456789
Features
instructions
accounts
events
types
handle tuple types
constants
error parsing
what is anchor-go?
anchor-go generates Go clients for Solana programs (smart contracts) written using the anchor framework.
This version of anchor-go only supports the IDL format of anchor starting with version 0.30.0.
If you have an older version of anchor, you can use anchor idl convert <my-old-idl.json> to convert it to the new format.
Expand ▾
Collapse ▴
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.