{"repo":"hillu/go-yara","free":true,"listed":false,"github":"https://github.com/hillu/go-yara","clone":"git clone https://github.com/hillu/go-yara.git","description":"Go bindings for YARA","language":"Go","stars":389,"topics":["yara","go","golang","cgo","hacktoberfest"],"license":"BSD-2-Clause","category":"dev-tools","readme_excerpt":"go-yara Go bindings for YARA, staying as close as sensible to the library's C-API while taking inspiration from the yara-python implementation. Build/Installation On Unix-like systems, libyara version 4.3, corresponding header files, and pkg-config must be installed. Adding go-yara v4 to a project with Go Modules enabled, simply add the proper dependency… …and rebuild your package. If libyara has been installed to a custom location, the PKG CONFIG PATH environment variable can be used to point pkg-config at the right yara.pc file. For anything more complicated, refer to the \"Build Tags\" section below. Instructions for cross-building go-yara for different operating systems or architectures can be found in README.cross-building.md. To build go-yara on Windows, a GCC-based build environment is required, preferably one that includes pkg-config . The 32-bit and 64-bit MinGW environments provided by the MSYS2 provide such an environment. Build Tags Static builds The build tag yara static can be used to tell the Go toolchain to run pkg-config with the --static switch. This is not enough for a static build; the appropriate linker flags (e.g. -extldflags \"-static\" ) still need to be passed to the go tool. Building without pkg-config The build tag yara no pkg config can be used to tell the Go toolchain not to use pkg-config 's output. In this case, any compiler or linker flags have to be set via the CGO CFLAGS and CGO LDFLAGS environment variables, e.g.: If libyara has been linked agai","default_branch":null,"files":null,"tree":[],"storefront":"/r/hillu","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/hillu/go-yara/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}