Skip to content
Back

[GO] How to work with multiple local packages?

  • 0
  • Functions
oknwsx
28 Aug, 2025, 11:34

While deploying I get the error my_module/sub: package my_module/sub is not in std (/usr/local/go/src/my_module/sub)

my code has only one module my_module and 2 packages main and sub in my entry point main.go (package main) I have import "my_module/sub" which is standard

  1. I tried to rename pkg main into handler like in the docs
TL;DR
Developers are encountering an error when deploying because the package they're importing is not in the standard directory. The issue arises from using multiple packages within a single module. One solution is to rename the package to follow the naming convention mentioned in the documentation.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more