Quick question on gb build tool usage

How to do I have packages in src? For ex, if my project name is ​sampleproject and a sub package called ​samplepackage then should I have a dir. structure something like this?

├── src
│   └── sampleproject
│       ├── somefile.go                (package main)
│       ├── main.go                    (package main)
│       ├── samplepackage
│             ├── service.go           (package samplepackage)
│             └── serviceinterface.go  (package samplepackage)

If so, how should I import the ​samplepackage in main​? And do linters work with this setup?

 import "someproject/somepackage"

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.