当前位置:网站首页>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 :

边栏推荐
- Upstream and downstream in software development
- Rocketqa: cross batch negatives, de noised hard negative sampling and data augmentation
- Alphabet-Rearrange-Inator 3000(字典树自定义排序)
- 开源基础软件公司,寻找一起创造未来的你(API7.ai)
- MySQL insert \ pre update + judgment condition
- 我的PMP学习考试心得
- (translation) reasons why real-time inline verification is easier for users to make mistakes
- The image variables in the Halcon variable window are not displayed, and it is useless to restart the software and the computer
- What are the preferential activities for stock account opening? In addition, is it safe to open a mobile account?
- LabVIEW计算相机图像传感器分辨率以及镜头焦距
猜你喜欢

nacos配置中心使用教程
The latest CSDN salary increase technology stack in 2022 overview of APP automated testing

What other hot spots are hidden under 1500W playback? Station B 2 future trends you can't miss

How does the property send a text message to the owner?

Ernie gram, an explicit and complete n-gram mask language model, implements explicit n-gram semantic unit knowledge modeling.

There is no future to be expected. It is just the last fantasy of a migrant worker before he dies
![[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](/img/22/1efa444220131359b06005f597c9db.png)
[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

手机edge浏览器无法打开三方应用

FL Studio20.9水果软件高级中文版电音编曲

软件开发中的上游和下游
随机推荐
P6773 [NOI2020] 命运(dp、线段树合并)
Calculate special bonus
[无线通信基础-15]:图解移动通信技术与应用发展-3- 数字通信2G GSM、CDMA、3G WDCMA/CDMA200/TD-SCDMA、4G LTE、5G NR概述
How to add a condition for an associated table in an SQL statement [null value required or not required]
SWT / anr problem - SWT caused by too long dump time
端口号和进程号的区别?
Short message sending solution in medical his industry
AS400 entretien d'usine
【毕业季·进击的技术er】--毕业到工作小结
(summary I) Halcon Foundation's target finding features + becoming a regular
【JS】【掘金】获取关注了里不在关注者里的人
Leetcode 面试题 17.10. 主要元素
What other hot spots are hidden under 1500W playback? Station B 2 future trends you can't miss
House change for agricultural products? "Disguised" house purchase subsidy!
org. redisson. client. Redisresponsetimeoutexception: redis server response timeout (3000 ms) error resolution
nacos配置中心使用教程
计算特殊奖金
Laravel event & Monitoring
AS400 API 从零到一的整个历程
How do the top ten securities firms open accounts? Also, is it safe to open an account online?