-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 0c8e39f
Showing
1,289 changed files
with
2,621 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"buildTargets":[],"launchTargets":[],"customConfigurationProvider":{"workspaceBrowse":{"browsePath":[],"compilerArgs":[]},"fileIndex":[]}} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
make.exe --dry-run --always-make --keep-going --print-directory | ||
make: Entering directory 'c:/Users/ACER/Projects/GoLang/learn-goroutines' | ||
make: Leaving directory 'c:/Users/ACER/Projects/GoLang/learn-goroutines' | ||
|
||
make: *** No targets specified and no makefile found. Stop. | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"makefile.extensionOutputFolder": "./.vscode" | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,319 @@ | ||
make.exe all --print-data-base --no-builtin-variables --no-builtin-rules --question | ||
make: *** No rule to make target 'all'. Stop. | ||
|
||
# GNU Make 4.3 | ||
# Built for Windows32 | ||
# Copyright (C) 1988-2020 Free Software Foundation, Inc. | ||
# License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> | ||
# This is free software: you are free to change and redistribute it. | ||
# There is NO WARRANTY, to the extent permitted by law. | ||
|
||
# Make data base, printed on Wed Aug 24 08:02:41 2022 | ||
|
||
# Variables | ||
|
||
# environment | ||
FPS_BROWSER_APP_PROFILE_STRING = Internet Explorer | ||
# environment | ||
SYSTEMDRIVE = C: | ||
# environment | ||
JAVA_HOME = C:\Program Files\OpenJDK\openjdk-8u302-b08 | ||
# environment | ||
LC_ALL = C | ||
# environment | ||
USERPROFILE = C:\Users\ACER | ||
# environment | ||
MKL_SERIAL = YES | ||
# environment | ||
LOCALAPPDATA = C:\Users\ACER\AppData\Local | ||
# environment | ||
VSCODE_CWD = C:\WINDOWS\system32 | ||
# environment | ||
CHOCOLATEYINSTALL = C:\ProgramData\chocolatey | ||
# environment | ||
SYSTEMROOT = C:\WINDOWS | ||
# environment | ||
PROCESSOR_LEVEL = 6 | ||
# environment | ||
PSMODULEPATH = C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules | ||
# default | ||
MAKE_COMMAND := C:/ProgramData/chocolatey/lib/make/tools/install/bin/make.exe | ||
# environment | ||
GOPATH = C:\Users\ACER\go | ||
# automatic | ||
@D = $(patsubst %/,%,$(patsubst %\,%,$(dir $@))) | ||
# environment | ||
CHROME_CRASHPAD_PIPE_NAME = \\.\pipe\crashpad_40060_TAIJRRRYVCSMHSGI | ||
# environment | ||
VS160COMCOMNTOOLS = C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\Tools\ | ||
# environment | ||
FPS_BROWSER_USER_PROFILE_STRING = Default | ||
# environment | ||
VSCODE_HANDLES_UNCAUGHT_ERRORS = true | ||
# default | ||
.VARIABLES := | ||
# automatic | ||
%D = $(patsubst %/,%,$(patsubst %\,%,$(dir $%))) | ||
# automatic | ||
^D = $(patsubst %/,%,$(patsubst %\,%,$(dir $^))) | ||
# automatic | ||
%F = $(notdir $%) | ||
# environment | ||
VSCODE_CODE_CACHE_PATH = C:\Users\ACER\AppData\Roaming\Code\CachedData\e4503b30fc78200f846c62cf8091b76ff5547662 | ||
# environment | ||
LANG = C | ||
# default | ||
.LOADED := | ||
# environment | ||
TMP = C:\Users\ACER\AppData\Local\Temp | ||
# default | ||
.INCLUDE_DIRS = . | ||
# environment | ||
PROCESSOR_ARCHITEW6432 = AMD64 | ||
# makefile | ||
MAKEFLAGS = pqrR | ||
# environment | ||
INTEL_DEV_REDIST = C:\Program Files (x86)\Common Files\Intel\Shared Libraries\ | ||
# environment | ||
ONEDRIVE = C:\Users\ACER\OneDrive | ||
# environment | ||
POWERSHELL_DISTRIBUTION_CHANNEL = MSI:Windows 10 Home Single Language | ||
# makefile | ||
CURDIR := c:/Users/ACER/Projects/GoLang/learn-goroutines | ||
# environment | ||
APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL = 1 | ||
# automatic | ||
*D = $(patsubst %/,%,$(patsubst %\,%,$(dir $*))) | ||
# environment | ||
PROGRAMFILES = C:\Program Files (x86) | ||
# environment | ||
MFLAGS = -pqrR | ||
# default | ||
.SHELLFLAGS := -c | ||
# environment | ||
COMMONPROGRAMW6432 = C:\Program Files\Common Files | ||
# automatic | ||
+D = $(patsubst %/,%,$(patsubst %\,%,$(dir $+))) | ||
# makefile | ||
MAKEFILE_LIST := | ||
# automatic | ||
@F = $(notdir $@) | ||
# environment | ||
VSCODE_PID = 40060 | ||
# environment | ||
CUDA_PATH = C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.3 | ||
# automatic | ||
?D = $(patsubst %/,%,$(patsubst %\,%,$(dir $?))) | ||
# automatic | ||
*F = $(notdir $*) | ||
# automatic | ||
<D = $(patsubst %/,%,$(patsubst %\,%,$(dir $<))) | ||
# environment | ||
VSCODE_NLS_CONFIG = {"locale":"en-us","availableLanguages":{},"_languagePackSupport":true} | ||
# environment | ||
ONEDRIVECONSUMER = C:\Users\ACER\OneDrive | ||
# default | ||
MAKE_HOST := Windows32 | ||
# environment | ||
ANDROID_HOME = C:\Users\ACER\AppData\Local\Android\Sdk | ||
# environment | ||
PROGRAMDATA = C:\ProgramData | ||
# default | ||
SHELL := sh.exe | ||
# environment | ||
NVCUDASAMPLES11_3_ROOT = C:\ProgramData\NVIDIA Corporation\CUDA Samples\v11.3 | ||
# environment | ||
HOMEPATH = \Users\ACER | ||
# default | ||
MAKECMDGOALS := all | ||
# environment | ||
DRIVERDATA = C:\Windows\System32\Drivers\DriverData | ||
# environment | ||
COMSPEC = C:\WINDOWS\system32\cmd.exe | ||
# environment | ||
WINDIR = C:\WINDOWS | ||
# environment | ||
MAKELEVEL := 0 | ||
# default | ||
MAKE = $(MAKE_COMMAND) | ||
# environment | ||
PATH = C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.3\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.3\libnvvp;C:\Users\ACER\AppData\Local\Programs\Python\Python37\Scripts;C:\Users\ACER\anaconda3\Scripts;C:\Users\ACER\AppData\Local\Programs\Python\Python37;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64\compiler;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\iCLS\;C:\Program Files\Intel\Intel(R) Management Engine Components\iCLS\;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files\MATLAB\R2021a\runtime\win64;C:\Program Files\MATLAB\R2021a\bin;C:\Program Files\dotnet\;C:\Program Files (x86)\STMicroelectronics\STM32 ST-LINK Utility\ST-LINK Utility;C:\Program Files (x86)\IVI Foundation\VISA\WinNT\Bin\;C:\Program Files\IVI Foundation\VISA\Win64\Bin\;C:\Program Files (x86)\IVI Foundation\VISA\WinNT\Bin;C:\ProgramData\chocolatey\bin;C:\Program Files\Git\cmd;C:\Program Files (x86)\Yarn\bin\;C:\Program Files\OpenJDK\openjdk-8u302-b08\bin;C:\Program Files\PowerShell\7\;C:\Program Files\OpenSSL\bin;C:\Program Files\nodejs\;C:\Program Files\CMake\bin;C:\Program Files\NVIDIA Corporation\Nsight Compute 2021.1.0\;C:\Program Files\MySQL\MySQL Server 8.0\bin;C:\Program Files\PostgreSQL\14\bin;;C:\Program Files\Go\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\Docker\Docker\resources\bin;C:\ProgramData\DockerDesktop\version-bin;C:\Program Files\MySQL\MySQL Shell 8.0\bin\;C:\Users\ACER\.cargo\bin;C:\Program Files\OpenSSL\bin;C:\Users\ACER\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\ACER\AppData\Roaming\npm;C:\ProgramData\chocolatey\lib\mingw\tools\install\mingw64\bin;D:\temp\zlib123dllx64\dll_x64\zlibwapi.dll;C:\Users\ACER\go\bin;C:\Users\ACER\AppData\Local\Microsoft\WindowsApps; | ||
# environment | ||
COMPUTERNAME = LAPTOP-FRPI96FQ | ||
# default | ||
MAKEFILES := | ||
# environment | ||
KMP_DUPLICATE_LIB_OK = TRUE | ||
# automatic | ||
^F = $(notdir $^) | ||
# environment | ||
PROMPT = $P$G | ||
# environment | ||
OPENSSL_CONF = D:\certs\openssl.cnf | ||
# environment | ||
CHOCOLATEYLASTPATHUPDATE = 132940240463514877 | ||
# environment | ||
NVTOOLSEXT_PATH = C:\Program Files\NVIDIA Corporation\NvToolsExt\ | ||
# environment | ||
VXIPNPPATH64 = C:\Program Files\IVI Foundation\VISA\ | ||
# environment | ||
CUDA_PATH_V11_3 = C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.3 | ||
# environment | ||
LOGONSERVER = \\LAPTOP-FRPI96FQ | ||
# environment | ||
QSYS_ROOTDIR = C:\intelFPGA_lite\20.1\quartus\sopc_builder\bin | ||
# environment | ||
USERNAME = ACER | ||
# environment | ||
COMMONPROGRAMFILES = C:\Program Files (x86)\Common Files | ||
# automatic | ||
?F = $(notdir $?) | ||
# environment | ||
PROGRAMW6432 = C:\Program Files | ||
# environment | ||
PATHEXT = .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.PY;.PYW | ||
# automatic | ||
+F = $(notdir $+) | ||
# environment | ||
ORIGINAL_XDG_CURRENT_DESKTOP = undefined | ||
# environment | ||
USERDOMAIN = LAPTOP-FRPI96FQ | ||
# 'override' directive | ||
GNUMAKEFLAGS := | ||
# environment | ||
OS = Windows_NT | ||
# makefile | ||
.DEFAULT_GOAL := | ||
# default | ||
MAKE_VERSION := 4.3 | ||
# environment | ||
PROGRAMFILES(X86) = C:\Program Files (x86) | ||
# environment | ||
NVCUDASAMPLES_ROOT = C:\ProgramData\NVIDIA Corporation\CUDA Samples\v11.3 | ||
# environment | ||
USERDOMAIN_ROAMINGPROFILE = LAPTOP-FRPI96FQ | ||
# environment | ||
NUMBER_OF_PROCESSORS = 8 | ||
# environment | ||
PUBLIC = C:\Users\Public | ||
# environment | ||
QUARTUS_ROOTDIR = C:\intelFPGA_lite\20.1\quartus | ||
# environment | ||
SOPC_KIT_NIOS2 = C:\intelFPGA_lite\20.1\nios2eds | ||
# environment | ||
APPDATA = C:\Users\ACER\AppData\Roaming | ||
# environment | ||
HOMEDRIVE = C: | ||
# environment | ||
PROCESSOR_ARCHITECTURE = x86 | ||
# environment | ||
GOMODCACHE = C:\Users\ACER\go\pkg\mod | ||
# environment | ||
VSCODE_AMD_ENTRYPOINT = vs/workbench/api/node/extensionHostProcess | ||
# environment | ||
VXIPNPPATH = C:\Program Files (x86)\IVI Foundation\VISA\ | ||
# environment | ||
COMMONPROGRAMFILES(X86) = C:\Program Files (x86)\Common Files | ||
# environment | ||
ELECTRON_RUN_AS_NODE = 1 | ||
# environment | ||
TEMP = C:\Users\ACER\AppData\Local\Temp | ||
# environment | ||
VSCODE_IPC_HOOK = \\.\pipe\fe5a1cb9a6b992bdc9dead82c0136c23-1.70.2-main-sock | ||
# environment | ||
GOPROXY = https://proxy.golang.org,direct | ||
# default | ||
.RECIPEPREFIX := | ||
# automatic | ||
<F = $(notdir $<) | ||
# default | ||
SUFFIXES := | ||
# environment | ||
ALLUSERSPROFILE = C:\ProgramData | ||
# environment | ||
SESSIONNAME = Console | ||
# default | ||
.FEATURES := target-specific order-only second-expansion else-if shortest-stem undefine oneshell nocomment grouped-target extra-prereqs archives jobserver output-sync load | ||
# environment | ||
MIC_LD_LIBRARY_PATH = C:\Program Files (x86)\Common Files\Intel\Shared Libraries\compiler\lib\mic | ||
# environment | ||
PROCESSOR_REVISION = 9e0a | ||
# environment | ||
PROCESSOR_IDENTIFIER = Intel64 Family 6 Model 158 Stepping 10, GenuineIntel | ||
# variable set hash-table stats: | ||
# Load=114/1024=11%, Rehash=0, Collisions=11/138=8% | ||
|
||
# Pattern-specific Variable Values | ||
|
||
# No pattern-specific variable values. | ||
|
||
# Directories | ||
|
||
# . (key c:/Users/ACER/Projects/GoLang/learn-goroutines, mtime 1661302960): 14 files, no impossibilities. | ||
|
||
# 14 files, no impossibilities in 1 directories. | ||
|
||
# Implicit Rules | ||
|
||
# No implicit rules. | ||
|
||
# Files | ||
|
||
# Not a target: | ||
Makefile: | ||
# Implicit rule search has been done. | ||
# File does not exist. | ||
# File has been updated. | ||
# Failed to be updated. | ||
|
||
# Not a target: | ||
.DEFAULT: | ||
# Implicit rule search has not been done. | ||
# Modification time never checked. | ||
# File has not been updated. | ||
|
||
# Not a target: | ||
all: | ||
# Command line target. | ||
# Implicit rule search has been done. | ||
# File does not exist. | ||
# File has not been updated. | ||
|
||
# Not a target: | ||
makefile: | ||
# Implicit rule search has been done. | ||
# File does not exist. | ||
# File has been updated. | ||
# Failed to be updated. | ||
|
||
# Not a target: | ||
makefile.mak: | ||
# Implicit rule search has been done. | ||
# File does not exist. | ||
# File has been updated. | ||
# Failed to be updated. | ||
|
||
# Not a target: | ||
GNUmakefile: | ||
# Implicit rule search has been done. | ||
# File does not exist. | ||
# File has been updated. | ||
# Failed to be updated. | ||
|
||
# files hash-table stats: | ||
# Load=7/1024=1%, Rehash=0, Collisions=0/16=0% | ||
# VPATH Search Paths | ||
|
||
# No 'vpath' search paths. | ||
|
||
# No general ('VPATH' variable) search path. | ||
|
||
# strcache buffers: 1 (0) / strings = 21 / storage = 252 B / avg = 12 B | ||
# current buf: size = 8174 B / used = 252 B / count = 21 / avg = 12 B | ||
|
||
# strcache performance: lookups = 24 / hit rate = 12% | ||
# hash-table stats: | ||
# Load=21/8192=0%, Rehash=0, Collisions=0/24=0% | ||
# Finished Make data base on Wed Aug 24 08:02:41 2022 | ||
|
||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module buffered-channels | ||
|
||
go 1.19 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package main | ||
|
||
import ( | ||
"fmt" | ||
"time" | ||
) | ||
|
||
func listenToChan(ch chan int) { | ||
for { | ||
// print a got data message | ||
i := <-ch | ||
fmt.Println("Got", i, "from channel") | ||
|
||
// simulate doing a lot of work | ||
time.Sleep(1 * time.Second) | ||
} | ||
} | ||
|
||
func main() { | ||
ch := make(chan int, 10) | ||
|
||
go listenToChan(ch) | ||
|
||
for i := 0; i <= 100; i++ { | ||
// the first 10 times through this loop, things go quickly; after that, things slow down. | ||
fmt.Println("sending", i, "to channel...") | ||
ch <- i | ||
fmt.Println("sent", i, "to channel!") | ||
} | ||
|
||
fmt.Println("Done!") | ||
close(ch) | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module channel-select | ||
|
||
go 1.19 |
Oops, something went wrong.