我创建了由名称的库libfastget这是在src我的程序作为
src
|-libfastget
| |-libfastget.go
|
|-MainProgram
|-main.go
Run Code Online (Sandbox Code Playgroud)
并libfastget输出fastget如下功能
package libfastget
import (
"fmt"
"io"
)
func fastget(urlPtr *string, nPtr *int, outFilePtr *string) download {
.....
return dl
}
Run Code Online (Sandbox Code Playgroud)
当我在主程序中使用库时
package main
import (
"fmt"
"net/http"
"os"
"libfastget"
"path/filepath"
"strings"
"flag"
"time"
)
func uploadFunc(w http.ResponseWriter, r *http.Request) {
n:=libfastget.fastget(url,4,filename)
}
}
Run Code Online (Sandbox Code Playgroud)
尝试构建时出现以下错误 go build
# FServe
./main.go:94: cannot refer to unexported name libfastget.fastget
./main.go:94: undefined: libfastget.fastget
Run Code Online (Sandbox Code Playgroud)
奇怪的是库文件libfastget.a存在于pkg文件夹中.
我最近开始使用SBCL学习Common Lisp.如何将我的Lisp程序编译成Windows二进制文件?
我将我的Go源代码交叉编译为Arm以在Android中运行.该程序在Android设备的终端中运行,但是我收到一条错误消息,指出缺少/etc/resolv.conf.我的程序在进行http调用时严重依赖net/http库.
如何在Android中处理此错误?
我最近从记事本++切换到了Notepad2块中的新孩子.但我发现很难找到一种方法将编辑器的背景颜色更改为黑暗主题,就像我在记事本++中使用的那样
我搜索了谷歌和SO,但没有发现任何说明是否有可能(如果是这样的话?)
嗨我在尝试导出具有两个函数的模块时遇到了Nodejs(带快速)的问题,其结构如下
exports.class1 = function(){
return = {
method1 : function(arg1, arg2){
...........
},
method2 : function (arg2, arg3, arg4){
..........
}
};
}
Run Code Online (Sandbox Code Playgroud)
导入时此模块以module1.js形式保存,如下所示使用时会发生错误
var module1 = require('./module1');
module1.class1.method1(arg1, arg2);
Run Code Online (Sandbox Code Playgroud) android ×2
go ×2
build ×1
common-lisp ×1
editor ×1
javascript ×1
node.js ×1
notepad++ ×1
notepad2 ×1
sbcl ×1