我有一个main.go
package main
import (
"context"
"fmt"
"log"
model "model"
"github.com/aws/aws-lambda-go/events"
"github.com/aws/aws-lambda-go/lambda"
)
func handler(...){
}
我尝试导入目录中的模型model并调用文件model.go
它只包含:
package model
type xxx struct {
xxx
}
我尝试主要导入它,但出现错误:
build: cannot load model: cannot find module providing package model
素胚勾勒不出你
当年话下
相关分类