I making game server in golang and i have such entities as Player
and Skill
. Player
can use his skills whilst Skill
could affect players. Player
file and skills files live in logic
directory(and in package logic
). I want to move skills files into separate directory skills
. I could not place it in logic directory and keep logic package for them cause golang not allowed it. Also i could not make package skills
and place the directory on same level as logic directory because i got:
import cycle not allowed
package main
imports projname/server/logic
imports projname/server/skills
imports projname/server/logic
What's wrong with my project architecture and how could i fix it?