diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..13566b8 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/.idea/goutils.iml b/.idea/goutils.iml new file mode 100644 index 0000000..5e764c4 --- /dev/null +++ b/.idea/goutils.iml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..aa5694d --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/pkg/other/other.go b/pkg/other/other.go new file mode 100644 index 0000000..ebc1c3a --- /dev/null +++ b/pkg/other/other.go @@ -0,0 +1,8 @@ +package other + +// OutputIntoChannel takes a singular return value and sends it into the target channel. +// This is a wrapper for functions where a value can't be collected from directly. +// Example: goroutines +func OutputIntoChannel[T any](out T, target chan T) { + target <- out +}