mirror of
https://github.com/nabbar/golib.git
synced 2025-12-24 11:51:02 +08:00
1a5ad976b27f43af1f6bd7126503b0a5db7e8d56
Add windows r limit capabilities for File Descriptor (NOFILE) * For Windows build, please follow this note : * 1) install package gcc-multilib gcc-mingw-w64 to build C source with GCC * you will having this binaries * - i686-w64-mingw32* for 32-bit Windows; * - x86_64-w64-mingw32* for 64-bit Windows. * locate you binaries gcc mingw path and note it: * - win32 : updatedb && locate i686-w64-mingw32-gcc * - win64 : updatedb && locate x86_64-w64-mingw32-gcc * 2) if you have an error in the build, or if the .o object file is not present in golib/njg-ioutils/maxstdio/, run this step * - go to golib/njg-ioutils/maxstdio folder * - gcc -c maxstdio.c * 3) for Win32 use this env var in prefix of your go build command (recommend to use -a flag) : * CC=/usr/bin/i686-w64-mingw32-gcc CGO_ENABLED=1 GOOS=windows GOARCH=amd64 go build -a -v ... * 4) for win64 use this env var in prefix of your go build command (recommend to use -a flag) : * CC=/usr/bin/x86_64-w64-mingw32-gcc CGO_ENABLED=1 GOOS=windows GOARCH=amd64 go build -a -v ... * * Normally no problem will be result in the build
golib : custom lib for go
snyk project : https://app.snyk.io/org/nabbar/project/2f55a2b8-6015-4db1-b859-c2bc3b7548a7
using in source code
first get the source dependancies
go get -u github.com/nabbar/golib/...
second, import the needed lib in your code
import "github.com/nabbar/golib/njs-version"
more information in each lib
Languages
Go
99.7%
Shell
0.3%