How to import local package in Golang

How do I import local package in Golang?

Repl link:

package main

import (

func main() {
  fmt.Println("Hello from main.go!")
`framework.go` in "locallib" folder
package framework

func HelloWorld() string {
    return "Hello World from framework.go!"

The code got syntax error in import line “./locallib/framework”:

could not import ./locallib/framework (no required module provides package "./locallib/framework")