#The Server properties is unknown
7 messages · Page 1 of 1 (latest)
because the field is private
in go if the first letter is lower case that private (only accessible in the same scope as where it's defined)
if it's upper case it's public
they're not private, theres just a mismatch in the field names
the names of the fields are Store and Router but you are specifying store and router
may i ask if this structure is fine, i wanted to separate the routing and controllers but struggling to implement it. And since i cannot import the package main i decided to separate the Server struct and put it inside type.go