当前位置:网站首页>Solutions to prompt non standard import in go language
Solutions to prompt non standard import in go language
2022-06-22 09:24:00 【ootw】
I'm just learning GO, Basically, it belongs to one of the dishes . Today, I need to write a gadget SQLite, So from the SQLite Download the installation package on the official website and install it . Everything went well at first , But I am prompted when compiling :
non-standard import "github.com/mattn/go-sqlite3" in standard package "iislog"I have searched the Internet for a long time, but I haven't found any relevant content , Then turn [ harmonious ] Google the wall , Find a foreign answer . I mean :
GO There are two paths that need to be defined , One is GO Own installation directory GOROOT, This directory can only hold standard packages , That is to say ”standart packages“. The other is GOPATH, It's the working directory , This is used to store third-party packages , That is to say “non-standard packages”.
So when I use go get github.com/mattn/go-sqlite3 when , It's put GOROOT In the , I moved it to GOPATH in , The problem is solved .
As for how GOROOT and GOPATH, Enter... On the command line : go env You can see .
If there are any questions , Welcome to leave a message , Let's make progress together .
边栏推荐
- ==Classic interview questions
- [Architect (Part 39)] connecting MySQL database developed by server
- list_ head
- Byte/byte? Don't get dizzy!
- ffmpeg之volumedetect
- Unicode字符/静态非静态的访问
- 一文走近ZMQ
- PHP online common color comparison table
- 变量那些事
- Alibaba big fish SMS interface PHP version, simplified version Alibaba big fish SMS sending interface PHP instance
猜你喜欢

How C processes use non static methods

It is hoped that more and more women will engage in scientific and technological work
![[node] please accept the crawler. We won't worry about the data any more](/img/f1/cb2ab621f9f714b650f0fbe3a26afa.png)
[node] please accept the crawler. We won't worry about the data any more

微服务架构概述

【node】理论+实践让你拿下session、cookie

一个老开源人的自述-如何干好开源这件事
![Let you get started [uni app]](/img/e7/bc33d54a345901f67afa856769045f.png)
Let you get started [uni app]

模板引擎,让交互变得优雅

在ensp上做多出口服务器映射

Continuous training on tensorflow breakpoint (principle + code explanation)
随机推荐
Process status summary
变量那些事
逻辑回归和线性回归
Development error reporting record
User insight into the video industry in January 2022: active users began to pick up under the influence of holidays
機器學習|nltk_Data下載錯誤|nltk的stopwords語料下載錯誤解决方法
Quick search system (aso+xls) v1.0
PHP login registration page
Record some Oracle operation commands
5 interview questions, grasp the underlying principle of string!
C# 进程如何使用非静态方法
File upload attack and protection
Stream stream creation_ Operation_ Collection_ case
Unicode字符/静态非静态的访问
traefik ingress实践
==Classic interview questions
IS_ ERR()
Sound and shadow 2022 heavy release! Detailed explanation of the new functions of Huisheng Huiying 2022
Jinglianwen Technology: product summary of machine learning AI dataset (III)
mknod