Pumpkin-Docs/docs/pt/plugin-dev/go/quick-start.md
Alexander Medvedev 5c23b676ed feat: d binding
2026-09-17 09:23:24 +02:00

845 B

Creating a new project

Pumpkin plugins use the Go programming language and are compiled to WebAssembly.

Prerequisites

Before we can start, make sure you have the following installed:

  • Go (latest version recommended)
  • TinyGo (required for WASM compilation)

Initializing a new module

First, create a new directory for your project and initialize a Go module:

mkdir hello-pumpkin
cd hello-pumpkin
go mod init github.com/yourname/hello-pumpkin

Next, add the Pumpkin Go API as a dependency:

go get github.com/Pumpkin-MC/pumpkin-api-go

Project Structure

Your project should have at least a main.go file. The structure should look like this:

├── go.mod
├── go.sum
└── main.go