当前位置:网站首页>Go import self built package
Go import self built package
2022-07-01 02:13:00 【qq_ forty-five million six hundred and ninety-one thousand five】
1.go mod init Yours mudlename
( Execute the command under the project folder )
For example, the package name here is wjj/ginessetial
2. Create your own package , And in main.go Introduction in
Create a new folder , For example, here is DB

DB Created in the go The name of the package is db

So when you are main.go Medium to call DB A function under the folder ( This is Initdb), How to import the corresponding package ?
stay main.go in , It should be written like this when introducing :
import " Yours modulename/ Project root / Function folder "
For example, I want to introduce DB Packages in the directory , That's it :

边栏推荐
- Pytorch —— 基础指北_贰 高中生都能看懂的[反向传播和梯度下降]
- [proteus simulation] Arduino UNO +74c922 keyboard decoding drive 4x4 matrix keyboard
- Do you write API documents or code first?
- Winodws 快速添加开机启动项
- int和位数组互转
- [无线通信基础-14]:图解移动通信技术与应用发展-2-第一代移动模拟通信大哥大
- Check the disk usage of MySQL database
- 修复表中的名字(首字符大写,其他小写)
- [fundamentals of wireless communication-15]: illustrated mobile communication technology and application development-3-overview of digital communication 2G GSM, CDMA, 3G wdcma/cdma200/td-scdma, 4G LTE
- Comment réaliser la liaison entre la serrure intelligente et la lampe, la scène du moteur de rideau intelligent dans le timing intelligent?
猜你喜欢

How to maintain efficient collaboration in remote office and achieve stable growth of projects | community essay solicitation

Mathematical knowledge: finding combinatorial number III - finding combinatorial number

centos 安装多个版本的php并切换

Fast understanding of forward proxy and reverse proxy

What is PMP?

QML控件类型:ToolTip

機器學習10-信念貝葉斯分類器
![How to add a condition for an associated table in an SQL statement [null value required or not required]](/img/91/0efbc13597be4dba5b9cf4e8644e35.png)
How to add a condition for an associated table in an SQL statement [null value required or not required]

The image variables in the Halcon variable window are not displayed, and it is useless to restart the software and the computer

Calculate special bonus
随机推荐
How to add a condition for an associated table in an SQL statement [null value required or not required]
How to maintain efficient collaboration in remote office and achieve stable growth of projects | community essay solicitation
What are the preferential activities for stock account opening? In addition, is it safe to open a mobile account?
[proteus simulation] Arduino UNO +74c922 keyboard decoding drive 4x4 matrix keyboard
手机edge浏览器无法打开三方应用
In the fourth week of June, the list - flying melon data up main growth ranking list (BiliBili platform) was released!
SQL语句关联表 如何添加关联表的条件 [需要null值或不需要null值]
RocketQA:通过跨批次负采样(cross-batch negatives)、去噪的强负例采样(denoised hard negative sampling)与数据增强(data augment
Alphabet rearrange inator 3000 (dictionary tree custom sorting)
Check the disk usage of MySQL database
我想知道股票开户怎么开户?究竟网上开户是否安全么?
2022年最新csdn涨薪技术栈-app自动化测试概述
5款主流智能音箱入门款测评:苹果小米华为天猫小度,谁的表现更胜一筹?
org.redisson.client.RedisResponseTimeoutException: Redis server response timeout (3000 ms)错误解决
(总结一)Halcon基础之寻找目标特征+转正
House change for agricultural products? "Disguised" house purchase subsidy!
Ernie-gram, 显式、完备的 n-gram 掩码语言模型,实现了显式的 n-gram 语义单元知识建模。
SWT/ANR问题--Binder Stuck
Static domain and static method
静态域与静态方法