This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # $ golangci-lint run --config=~/.golangci.yml ./... > lint.txt | |
| version: "2" | |
| linters: | |
| enable: | |
| - asasalint | |
| - asciicheck | |
| - bidichk | |
| - bodyclose | |
| - canonicalheader |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module go-windows-chown | |
| go 1.15 | |
| require golang.org/x/sys v0.0.0-20210110051926-789bb1bd4061 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| KDIR ?= /lib/modules/$(shell uname -r) | |
| SDIR ?= $(KDIR)/source | |
| CLANG ?= clang | |
| LLC ?= llc | |
| #ARCH := $(subst x86_64,x86,$(shell arch)) | |
| ARCH := x86 | |
| BIN := modify-ping-ttl.o | |
| CLANG_FLAGS = -I. -I$(SDIR)/arch/$(ARCH)/include \ | |
| -I$(SDIR)/arch/$(ARCH)/include/generated \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "fmt" | |
| "math" | |
| "strconv" | |
| ) | |
| var ( | |
| sizeInMB float64 = 999 // This is in megabytes |