├── CSharp └── GolangInSharp │ ├── .vs │ └── GolangInSharp │ │ └── v16 │ │ └── .suo │ ├── GolangInSharp.sln │ ├── GolangInSharp │ ├── App.config │ ├── Costura32 │ │ └── main.dll │ ├── Costura64 │ │ └── main.dll │ ├── FodyWeavers.xml │ ├── FodyWeavers.xsd │ ├── GolangInSharp.csproj │ ├── Program.cs │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── bin │ │ └── Debug │ │ │ ├── GolangInSharp.exe │ │ │ ├── GolangInSharp.exe.config │ │ │ └── GolangInSharp.pdb │ ├── obj │ │ └── Debug │ │ │ ├── Costura │ │ │ └── 5954E332EC7732BA34C27E2D88D154D1919C1B07.costura.costura.dll.compressed │ │ │ ├── DesignTimeResolveAssemblyReferencesInput.cache │ │ │ ├── GolangInSharp.csproj.CoreCompileInputs.cache │ │ │ ├── GolangInSharp.csproj.FileListAbsolute.txt │ │ │ ├── GolangInSharp.csproj.Fody.CopyLocal.cache │ │ │ ├── GolangInSharp.exe │ │ │ └── GolangInSharp.pdb │ └── packages.config │ └── packages │ ├── Costura.Fody.4.1.0 │ ├── .signature.p7s │ ├── Costura.Fody.4.1.0.nupkg │ ├── build │ │ └── Costura.Fody.props │ ├── lib │ │ └── net40 │ │ │ ├── Costura.dll │ │ │ └── Costura.xml │ └── weaver │ │ ├── Costura.Fody.dll │ │ └── Costura.Fody.xcf │ └── Fody.6.2.0 │ ├── .signature.p7s │ ├── Fody.6.2.0.nupkg │ ├── License.txt │ ├── build │ └── Fody.targets │ ├── netclassictask │ ├── Fody.dll │ ├── FodyCommon.dll │ ├── FodyHelpers.dll │ ├── FodyIsolated.dll │ ├── Mono.Cecil.Pdb.dll │ ├── Mono.Cecil.Pdb.pdb │ ├── Mono.Cecil.Rocks.dll │ ├── Mono.Cecil.Rocks.pdb │ ├── Mono.Cecil.dll │ └── Mono.Cecil.pdb │ └── netstandardtask │ ├── Fody.dll │ ├── FodyCommon.dll │ ├── FodyHelpers.dll │ ├── FodyIsolated.dll │ ├── Mono.Cecil.Pdb.dll │ ├── Mono.Cecil.Pdb.pdb │ ├── Mono.Cecil.Rocks.dll │ ├── Mono.Cecil.Rocks.pdb │ ├── Mono.Cecil.dll │ └── Mono.Cecil.pdb ├── GO ├── main.dll ├── main.go └── main.h └── README.md /CSharp/GolangInSharp/.vs/GolangInSharp/v16/.suo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shantanu561993/GolanginCsharp/ae825aeb0f28ac18e9db8bb7ab6b504a783db840/CSharp/GolangInSharp/.vs/GolangInSharp/v16/.suo -------------------------------------------------------------------------------- /CSharp/GolangInSharp/GolangInSharp.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Version 16 4 | VisualStudioVersion = 16.0.30011.22 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GolangInSharp", "GolangInSharp\GolangInSharp.csproj", "{E3305E54-6626-4486-8765-A7BD2E8CC51F}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Any CPU = Debug|Any CPU 11 | Release|Any CPU = Release|Any CPU 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {E3305E54-6626-4486-8765-A7BD2E8CC51F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 15 | {E3305E54-6626-4486-8765-A7BD2E8CC51F}.Debug|Any CPU.Build.0 = Debug|Any CPU 16 | {E3305E54-6626-4486-8765-A7BD2E8CC51F}.Release|Any CPU.ActiveCfg = Release|Any CPU 17 | {E3305E54-6626-4486-8765-A7BD2E8CC51F}.Release|Any CPU.Build.0 = Release|Any CPU 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | GlobalSection(ExtensibilityGlobals) = postSolution 23 | SolutionGuid = {619578A5-DD09-41B9-855F-C71869A8BF3A} 24 | EndGlobalSection 25 | EndGlobal 26 | -------------------------------------------------------------------------------- /CSharp/GolangInSharp/GolangInSharp/App.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /CSharp/GolangInSharp/GolangInSharp/Costura32/main.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shantanu561993/GolanginCsharp/ae825aeb0f28ac18e9db8bb7ab6b504a783db840/CSharp/GolangInSharp/GolangInSharp/Costura32/main.dll -------------------------------------------------------------------------------- /CSharp/GolangInSharp/GolangInSharp/Costura64/main.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shantanu561993/GolanginCsharp/ae825aeb0f28ac18e9db8bb7ab6b504a783db840/CSharp/GolangInSharp/GolangInSharp/Costura64/main.dll -------------------------------------------------------------------------------- /CSharp/GolangInSharp/GolangInSharp/FodyWeavers.xml: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | -------------------------------------------------------------------------------- /CSharp/GolangInSharp/GolangInSharp/FodyWeavers.xsd: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | A list of assembly names to exclude from the default action of "embed all Copy Local references", delimited with line breaks 13 | 14 | 15 | 16 | 17 | A list of assembly names to include from the default action of "embed all Copy Local references", delimited with line breaks. 18 | 19 | 20 | 21 | 22 | A list of unmanaged 32 bit assembly names to include, delimited with line breaks. 23 | 24 | 25 | 26 | 27 | A list of unmanaged 64 bit assembly names to include, delimited with line breaks. 28 | 29 | 30 | 31 | 32 | The order of preloaded assemblies, delimited with line breaks. 33 | 34 | 35 | 36 | 37 | 38 | This will copy embedded files to disk before loading them into memory. This is helpful for some scenarios that expected an assembly to be loaded from a physical file. 39 | 40 | 41 | 42 | 43 | Controls if .pdbs for reference assemblies are also embedded. 44 | 45 | 46 | 47 | 48 | Embedded assemblies are compressed by default, and uncompressed when they are loaded. You can turn compression off with this option. 49 | 50 | 51 | 52 | 53 | As part of Costura, embedded assemblies are no longer included as part of the build. This cleanup can be turned off. 54 | 55 | 56 | 57 | 58 | Costura by default will load as part of the module initialization. This flag disables that behavior. Make sure you call CosturaUtility.Initialize() somewhere in your code. 59 | 60 | 61 | 62 | 63 | Costura will by default use assemblies with a name like 'resources.dll' as a satellite resource and prepend the output path. This flag disables that behavior. 64 | 65 | 66 | 67 | 68 | A list of assembly names to exclude from the default action of "embed all Copy Local references", delimited with | 69 | 70 | 71 | 72 | 73 | A list of assembly names to include from the default action of "embed all Copy Local references", delimited with |. 74 | 75 | 76 | 77 | 78 | A list of unmanaged 32 bit assembly names to include, delimited with |. 79 | 80 | 81 | 82 | 83 | A list of unmanaged 64 bit assembly names to include, delimited with |. 84 | 85 | 86 | 87 | 88 | The order of preloaded assemblies, delimited with |. 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 'true' to run assembly verification (PEVerify) on the target assembly after all weavers have been executed. 97 | 98 | 99 | 100 | 101 | A comma-separated list of error codes that can be safely ignored in assembly verification. 102 | 103 | 104 | 105 | 106 | 'false' to turn off automatic generation of the XML Schema file. 107 | 108 | 109 | 110 | 111 | -------------------------------------------------------------------------------- /CSharp/GolangInSharp/GolangInSharp/GolangInSharp.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | Debug 7 | AnyCPU 8 | {E3305E54-6626-4486-8765-A7BD2E8CC51F} 9 | Exe 10 | GolangInSharp 11 | GolangInSharp 12 | v4.7.2 13 | 512 14 | true 15 | true 16 | 17 | 18 | 19 | 20 | AnyCPU 21 | true 22 | full 23 | false 24 | bin\Debug\ 25 | DEBUG;TRACE 26 | prompt 27 | 4 28 | false 29 | 30 | 31 | AnyCPU 32 | pdbonly 33 | true 34 | bin\Release\ 35 | TRACE 36 | prompt 37 | 4 38 | 39 | 40 | 41 | ..\packages\Costura.Fody.4.1.0\lib\net40\Costura.dll 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. 70 | 71 | 72 | 73 | 74 | -------------------------------------------------------------------------------- /CSharp/GolangInSharp/GolangInSharp/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Runtime.InteropServices; 5 | using System.Text; 6 | using System.Threading.Tasks; 7 | 8 | namespace GolangInSharp 9 | { 10 | class Program 11 | { 12 | [DllImport("main", EntryPoint = "PrintHello")] 13 | extern static void PrintHello(); 14 | 15 | [DllImport("main", EntryPoint = "Sum")] 16 | extern static int Sum(int a, int b); 17 | 18 | [DllImport("main", EntryPoint = "stringtest")] 19 | extern static int stringtest(byte[] test); 20 | 21 | static void Main(string[] args) 22 | { 23 | PrintHello(); 24 | int c = Sum(3, 5); 25 | Console.WriteLine("Call Go Func to Add 3 and 5, result is " + c); 26 | stringtest(Encoding.ASCII.GetBytes("I Am String")); 27 | Console.ReadKey(); 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /CSharp/GolangInSharp/GolangInSharp/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("GolangInSharp")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("GolangInSharp")] 13 | [assembly: AssemblyCopyright("Copyright © 2020")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("e3305e54-6626-4486-8765-a7bd2e8cc51f")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /CSharp/GolangInSharp/GolangInSharp/bin/Debug/GolangInSharp.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shantanu561993/GolanginCsharp/ae825aeb0f28ac18e9db8bb7ab6b504a783db840/CSharp/GolangInSharp/GolangInSharp/bin/Debug/GolangInSharp.exe -------------------------------------------------------------------------------- /CSharp/GolangInSharp/GolangInSharp/bin/Debug/GolangInSharp.exe.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /CSharp/GolangInSharp/GolangInSharp/bin/Debug/GolangInSharp.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shantanu561993/GolanginCsharp/ae825aeb0f28ac18e9db8bb7ab6b504a783db840/CSharp/GolangInSharp/GolangInSharp/bin/Debug/GolangInSharp.pdb -------------------------------------------------------------------------------- /CSharp/GolangInSharp/GolangInSharp/obj/Debug/Costura/5954E332EC7732BA34C27E2D88D154D1919C1B07.costura.costura.dll.compressed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shantanu561993/GolanginCsharp/ae825aeb0f28ac18e9db8bb7ab6b504a783db840/CSharp/GolangInSharp/GolangInSharp/obj/Debug/Costura/5954E332EC7732BA34C27E2D88D154D1919C1B07.costura.costura.dll.compressed -------------------------------------------------------------------------------- /CSharp/GolangInSharp/GolangInSharp/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shantanu561993/GolanginCsharp/ae825aeb0f28ac18e9db8bb7ab6b504a783db840/CSharp/GolangInSharp/GolangInSharp/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache -------------------------------------------------------------------------------- /CSharp/GolangInSharp/GolangInSharp/obj/Debug/GolangInSharp.csproj.CoreCompileInputs.cache: -------------------------------------------------------------------------------- 1 | 3aca0bdc11e7816913b4efd609b4bee1f0d39662 2 | -------------------------------------------------------------------------------- /CSharp/GolangInSharp/GolangInSharp/obj/Debug/GolangInSharp.csproj.FileListAbsolute.txt: -------------------------------------------------------------------------------- 1 | C:\Users\intruder\source\GO\GolangToSharp\CSharp\GolangInSharp\GolangInSharp\bin\Debug\GolangInSharp.exe.config 2 | C:\Users\intruder\source\GO\GolangToSharp\CSharp\GolangInSharp\GolangInSharp\bin\Debug\GolangInSharp.exe 3 | C:\Users\intruder\source\GO\GolangToSharp\CSharp\GolangInSharp\GolangInSharp\bin\Debug\GolangInSharp.pdb 4 | C:\Users\intruder\source\GO\GolangToSharp\CSharp\GolangInSharp\GolangInSharp\obj\Debug\GolangInSharp.csproj.CoreCompileInputs.cache 5 | C:\Users\intruder\source\GO\GolangToSharp\CSharp\GolangInSharp\GolangInSharp\obj\Debug\GolangInSharp.csproj.Fody.CopyLocal.cache 6 | C:\Users\intruder\source\GO\GolangToSharp\CSharp\GolangInSharp\GolangInSharp\obj\Debug\GolangInSharp.exe 7 | C:\Users\intruder\source\GO\GolangToSharp\CSharp\GolangInSharp\GolangInSharp\obj\Debug\GolangInSharp.pdb 8 | -------------------------------------------------------------------------------- /CSharp/GolangInSharp/GolangInSharp/obj/Debug/GolangInSharp.csproj.Fody.CopyLocal.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shantanu561993/GolanginCsharp/ae825aeb0f28ac18e9db8bb7ab6b504a783db840/CSharp/GolangInSharp/GolangInSharp/obj/Debug/GolangInSharp.csproj.Fody.CopyLocal.cache -------------------------------------------------------------------------------- /CSharp/GolangInSharp/GolangInSharp/obj/Debug/GolangInSharp.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shantanu561993/GolanginCsharp/ae825aeb0f28ac18e9db8bb7ab6b504a783db840/CSharp/GolangInSharp/GolangInSharp/obj/Debug/GolangInSharp.exe -------------------------------------------------------------------------------- /CSharp/GolangInSharp/GolangInSharp/obj/Debug/GolangInSharp.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shantanu561993/GolanginCsharp/ae825aeb0f28ac18e9db8bb7ab6b504a783db840/CSharp/GolangInSharp/GolangInSharp/obj/Debug/GolangInSharp.pdb -------------------------------------------------------------------------------- /CSharp/GolangInSharp/GolangInSharp/packages.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /CSharp/GolangInSharp/packages/Costura.Fody.4.1.0/.signature.p7s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shantanu561993/GolanginCsharp/ae825aeb0f28ac18e9db8bb7ab6b504a783db840/CSharp/GolangInSharp/packages/Costura.Fody.4.1.0/.signature.p7s -------------------------------------------------------------------------------- /CSharp/GolangInSharp/packages/Costura.Fody.4.1.0/Costura.Fody.4.1.0.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shantanu561993/GolanginCsharp/ae825aeb0f28ac18e9db8bb7ab6b504a783db840/CSharp/GolangInSharp/packages/Costura.Fody.4.1.0/Costura.Fody.4.1.0.nupkg -------------------------------------------------------------------------------- /CSharp/GolangInSharp/packages/Costura.Fody.4.1.0/build/Costura.Fody.props: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /CSharp/GolangInSharp/packages/Costura.Fody.4.1.0/lib/net40/Costura.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shantanu561993/GolanginCsharp/ae825aeb0f28ac18e9db8bb7ab6b504a783db840/CSharp/GolangInSharp/packages/Costura.Fody.4.1.0/lib/net40/Costura.dll -------------------------------------------------------------------------------- /CSharp/GolangInSharp/packages/Costura.Fody.4.1.0/lib/net40/Costura.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Costura 5 | 6 | 7 | 8 | 9 | Contains methods for interacting with the Costura system. 10 | 11 | 12 | 13 | 14 | Call this to Initialize the Costura system. 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /CSharp/GolangInSharp/packages/Costura.Fody.4.1.0/weaver/Costura.Fody.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shantanu561993/GolanginCsharp/ae825aeb0f28ac18e9db8bb7ab6b504a783db840/CSharp/GolangInSharp/packages/Costura.Fody.4.1.0/weaver/Costura.Fody.dll -------------------------------------------------------------------------------- /CSharp/GolangInSharp/packages/Costura.Fody.4.1.0/weaver/Costura.Fody.xcf: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | A list of assembly names to exclude from the default action of "embed all Copy Local references", delimited with line breaks 7 | 8 | 9 | 10 | 11 | A list of assembly names to include from the default action of "embed all Copy Local references", delimited with line breaks. 12 | 13 | 14 | 15 | 16 | A list of unmanaged 32 bit assembly names to include, delimited with line breaks. 17 | 18 | 19 | 20 | 21 | A list of unmanaged 64 bit assembly names to include, delimited with line breaks. 22 | 23 | 24 | 25 | 26 | The order of preloaded assemblies, delimited with line breaks. 27 | 28 | 29 | 30 | 31 | 32 | This will copy embedded files to disk before loading them into memory. This is helpful for some scenarios that expected an assembly to be loaded from a physical file. 33 | 34 | 35 | 36 | 37 | Controls if .pdbs for reference assemblies are also embedded. 38 | 39 | 40 | 41 | 42 | Embedded assemblies are compressed by default, and uncompressed when they are loaded. You can turn compression off with this option. 43 | 44 | 45 | 46 | 47 | As part of Costura, embedded assemblies are no longer included as part of the build. This cleanup can be turned off. 48 | 49 | 50 | 51 | 52 | Costura by default will load as part of the module initialization. This flag disables that behavior. Make sure you call CosturaUtility.Initialize() somewhere in your code. 53 | 54 | 55 | 56 | 57 | Costura will by default use assemblies with a name like 'resources.dll' as a satellite resource and prepend the output path. This flag disables that behavior. 58 | 59 | 60 | 61 | 62 | A list of assembly names to exclude from the default action of "embed all Copy Local references", delimited with | 63 | 64 | 65 | 66 | 67 | A list of assembly names to include from the default action of "embed all Copy Local references", delimited with |. 68 | 69 | 70 | 71 | 72 | A list of unmanaged 32 bit assembly names to include, delimited with |. 73 | 74 | 75 | 76 | 77 | A list of unmanaged 64 bit assembly names to include, delimited with |. 78 | 79 | 80 | 81 | 82 | The order of preloaded assemblies, delimited with |. 83 | 84 | 85 | -------------------------------------------------------------------------------- /CSharp/GolangInSharp/packages/Fody.6.2.0/.signature.p7s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shantanu561993/GolanginCsharp/ae825aeb0f28ac18e9db8bb7ab6b504a783db840/CSharp/GolangInSharp/packages/Fody.6.2.0/.signature.p7s -------------------------------------------------------------------------------- /CSharp/GolangInSharp/packages/Fody.6.2.0/Fody.6.2.0.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shantanu561993/GolanginCsharp/ae825aeb0f28ac18e9db8bb7ab6b504a783db840/CSharp/GolangInSharp/packages/Fody.6.2.0/Fody.6.2.0.nupkg -------------------------------------------------------------------------------- /CSharp/GolangInSharp/packages/Fody.6.2.0/License.txt: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) Simon Cropp 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. -------------------------------------------------------------------------------- /CSharp/GolangInSharp/packages/Fody.6.2.0/build/Fody.targets: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | $(ProjectDir)FodyWeavers.xml 5 | $(MSBuildThisFileDirectory)..\ 6 | $(FodyPath)netstandardtask 7 | $(FodyPath)netclassictask 8 | $(FodyAssemblyDirectory)\Fody.dll 9 | $(DefaultItemExcludes);FodyWeavers.xsd 10 | true 11 | 15 12 | $([System.Version]::Parse($(MSBuildVersion)).Major) 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 37 | 38 | 40 | 60 | 61 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 77 | 78 | 82 | 83 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 101 | 102 | 110 | 111 | 112 | -------------------------------------------------------------------------------- /CSharp/GolangInSharp/packages/Fody.6.2.0/netclassictask/Fody.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shantanu561993/GolanginCsharp/ae825aeb0f28ac18e9db8bb7ab6b504a783db840/CSharp/GolangInSharp/packages/Fody.6.2.0/netclassictask/Fody.dll -------------------------------------------------------------------------------- /CSharp/GolangInSharp/packages/Fody.6.2.0/netclassictask/FodyCommon.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shantanu561993/GolanginCsharp/ae825aeb0f28ac18e9db8bb7ab6b504a783db840/CSharp/GolangInSharp/packages/Fody.6.2.0/netclassictask/FodyCommon.dll -------------------------------------------------------------------------------- /CSharp/GolangInSharp/packages/Fody.6.2.0/netclassictask/FodyHelpers.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shantanu561993/GolanginCsharp/ae825aeb0f28ac18e9db8bb7ab6b504a783db840/CSharp/GolangInSharp/packages/Fody.6.2.0/netclassictask/FodyHelpers.dll -------------------------------------------------------------------------------- /CSharp/GolangInSharp/packages/Fody.6.2.0/netclassictask/FodyIsolated.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shantanu561993/GolanginCsharp/ae825aeb0f28ac18e9db8bb7ab6b504a783db840/CSharp/GolangInSharp/packages/Fody.6.2.0/netclassictask/FodyIsolated.dll -------------------------------------------------------------------------------- /CSharp/GolangInSharp/packages/Fody.6.2.0/netclassictask/Mono.Cecil.Pdb.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shantanu561993/GolanginCsharp/ae825aeb0f28ac18e9db8bb7ab6b504a783db840/CSharp/GolangInSharp/packages/Fody.6.2.0/netclassictask/Mono.Cecil.Pdb.dll -------------------------------------------------------------------------------- /CSharp/GolangInSharp/packages/Fody.6.2.0/netclassictask/Mono.Cecil.Pdb.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shantanu561993/GolanginCsharp/ae825aeb0f28ac18e9db8bb7ab6b504a783db840/CSharp/GolangInSharp/packages/Fody.6.2.0/netclassictask/Mono.Cecil.Pdb.pdb -------------------------------------------------------------------------------- /CSharp/GolangInSharp/packages/Fody.6.2.0/netclassictask/Mono.Cecil.Rocks.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shantanu561993/GolanginCsharp/ae825aeb0f28ac18e9db8bb7ab6b504a783db840/CSharp/GolangInSharp/packages/Fody.6.2.0/netclassictask/Mono.Cecil.Rocks.dll -------------------------------------------------------------------------------- /CSharp/GolangInSharp/packages/Fody.6.2.0/netclassictask/Mono.Cecil.Rocks.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shantanu561993/GolanginCsharp/ae825aeb0f28ac18e9db8bb7ab6b504a783db840/CSharp/GolangInSharp/packages/Fody.6.2.0/netclassictask/Mono.Cecil.Rocks.pdb -------------------------------------------------------------------------------- /CSharp/GolangInSharp/packages/Fody.6.2.0/netclassictask/Mono.Cecil.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shantanu561993/GolanginCsharp/ae825aeb0f28ac18e9db8bb7ab6b504a783db840/CSharp/GolangInSharp/packages/Fody.6.2.0/netclassictask/Mono.Cecil.dll -------------------------------------------------------------------------------- /CSharp/GolangInSharp/packages/Fody.6.2.0/netclassictask/Mono.Cecil.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shantanu561993/GolanginCsharp/ae825aeb0f28ac18e9db8bb7ab6b504a783db840/CSharp/GolangInSharp/packages/Fody.6.2.0/netclassictask/Mono.Cecil.pdb -------------------------------------------------------------------------------- /CSharp/GolangInSharp/packages/Fody.6.2.0/netstandardtask/Fody.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shantanu561993/GolanginCsharp/ae825aeb0f28ac18e9db8bb7ab6b504a783db840/CSharp/GolangInSharp/packages/Fody.6.2.0/netstandardtask/Fody.dll -------------------------------------------------------------------------------- /CSharp/GolangInSharp/packages/Fody.6.2.0/netstandardtask/FodyCommon.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shantanu561993/GolanginCsharp/ae825aeb0f28ac18e9db8bb7ab6b504a783db840/CSharp/GolangInSharp/packages/Fody.6.2.0/netstandardtask/FodyCommon.dll -------------------------------------------------------------------------------- /CSharp/GolangInSharp/packages/Fody.6.2.0/netstandardtask/FodyHelpers.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shantanu561993/GolanginCsharp/ae825aeb0f28ac18e9db8bb7ab6b504a783db840/CSharp/GolangInSharp/packages/Fody.6.2.0/netstandardtask/FodyHelpers.dll -------------------------------------------------------------------------------- /CSharp/GolangInSharp/packages/Fody.6.2.0/netstandardtask/FodyIsolated.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shantanu561993/GolanginCsharp/ae825aeb0f28ac18e9db8bb7ab6b504a783db840/CSharp/GolangInSharp/packages/Fody.6.2.0/netstandardtask/FodyIsolated.dll -------------------------------------------------------------------------------- /CSharp/GolangInSharp/packages/Fody.6.2.0/netstandardtask/Mono.Cecil.Pdb.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shantanu561993/GolanginCsharp/ae825aeb0f28ac18e9db8bb7ab6b504a783db840/CSharp/GolangInSharp/packages/Fody.6.2.0/netstandardtask/Mono.Cecil.Pdb.dll -------------------------------------------------------------------------------- /CSharp/GolangInSharp/packages/Fody.6.2.0/netstandardtask/Mono.Cecil.Pdb.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shantanu561993/GolanginCsharp/ae825aeb0f28ac18e9db8bb7ab6b504a783db840/CSharp/GolangInSharp/packages/Fody.6.2.0/netstandardtask/Mono.Cecil.Pdb.pdb -------------------------------------------------------------------------------- /CSharp/GolangInSharp/packages/Fody.6.2.0/netstandardtask/Mono.Cecil.Rocks.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shantanu561993/GolanginCsharp/ae825aeb0f28ac18e9db8bb7ab6b504a783db840/CSharp/GolangInSharp/packages/Fody.6.2.0/netstandardtask/Mono.Cecil.Rocks.dll -------------------------------------------------------------------------------- /CSharp/GolangInSharp/packages/Fody.6.2.0/netstandardtask/Mono.Cecil.Rocks.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shantanu561993/GolanginCsharp/ae825aeb0f28ac18e9db8bb7ab6b504a783db840/CSharp/GolangInSharp/packages/Fody.6.2.0/netstandardtask/Mono.Cecil.Rocks.pdb -------------------------------------------------------------------------------- /CSharp/GolangInSharp/packages/Fody.6.2.0/netstandardtask/Mono.Cecil.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shantanu561993/GolanginCsharp/ae825aeb0f28ac18e9db8bb7ab6b504a783db840/CSharp/GolangInSharp/packages/Fody.6.2.0/netstandardtask/Mono.Cecil.dll -------------------------------------------------------------------------------- /CSharp/GolangInSharp/packages/Fody.6.2.0/netstandardtask/Mono.Cecil.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shantanu561993/GolanginCsharp/ae825aeb0f28ac18e9db8bb7ab6b504a783db840/CSharp/GolangInSharp/packages/Fody.6.2.0/netstandardtask/Mono.Cecil.pdb -------------------------------------------------------------------------------- /GO/main.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shantanu561993/GolanginCsharp/ae825aeb0f28ac18e9db8bb7ab6b504a783db840/GO/main.dll -------------------------------------------------------------------------------- /GO/main.go: -------------------------------------------------------------------------------- 1 | package main 2 | import "fmt" 3 | import "C" 4 | import "strings" 5 | 6 | func main() { 7 | } 8 | 9 | //PrintHello : 10 | //export PrintHello 11 | func PrintHello() { 12 | fmt.Println("Hello From Golang") 13 | } 14 | 15 | //Sum : 16 | //export Sum 17 | func Sum(a, b int) int { 18 | return a + b 19 | } 20 | 21 | //stringtest : 22 | //export stringtest 23 | func stringtest(name *C.char) { 24 | s := strings.Fields(C.GoString(name)) 25 | fmt.Println(s) 26 | } 27 | -------------------------------------------------------------------------------- /GO/main.h: -------------------------------------------------------------------------------- 1 | /* Code generated by cmd/cgo; DO NOT EDIT. */ 2 | 3 | /* package command-line-arguments */ 4 | 5 | 6 | #line 1 "cgo-builtin-export-prolog" 7 | 8 | #include /* for ptrdiff_t below */ 9 | 10 | #ifndef GO_CGO_EXPORT_PROLOGUE_H 11 | #define GO_CGO_EXPORT_PROLOGUE_H 12 | 13 | #ifndef GO_CGO_GOSTRING_TYPEDEF 14 | typedef struct { const char *p; ptrdiff_t n; } _GoString_; 15 | #endif 16 | 17 | #endif 18 | 19 | /* Start of preamble from import "C" comments. */ 20 | 21 | 22 | 23 | 24 | /* End of preamble from import "C" comments. */ 25 | 26 | 27 | /* Start of boilerplate cgo prologue. */ 28 | #line 1 "cgo-gcc-export-header-prolog" 29 | 30 | #ifndef GO_CGO_PROLOGUE_H 31 | #define GO_CGO_PROLOGUE_H 32 | 33 | typedef signed char GoInt8; 34 | typedef unsigned char GoUint8; 35 | typedef short GoInt16; 36 | typedef unsigned short GoUint16; 37 | typedef int GoInt32; 38 | typedef unsigned int GoUint32; 39 | typedef long long GoInt64; 40 | typedef unsigned long long GoUint64; 41 | typedef GoInt64 GoInt; 42 | typedef GoUint64 GoUint; 43 | typedef __SIZE_TYPE__ GoUintptr; 44 | typedef float GoFloat32; 45 | typedef double GoFloat64; 46 | typedef float _Complex GoComplex64; 47 | typedef double _Complex GoComplex128; 48 | 49 | /* 50 | static assertion to make sure the file is being used on architecture 51 | at least with matching size of GoInt. 52 | */ 53 | typedef char _check_for_64_bit_pointer_matching_GoInt[sizeof(void*)==64/8 ? 1:-1]; 54 | 55 | #ifndef GO_CGO_GOSTRING_TYPEDEF 56 | typedef _GoString_ GoString; 57 | #endif 58 | typedef void *GoMap; 59 | typedef void *GoChan; 60 | typedef struct { void *t; void *v; } GoInterface; 61 | typedef struct { void *data; GoInt len; GoInt cap; } GoSlice; 62 | 63 | #endif 64 | 65 | /* End of boilerplate cgo prologue. */ 66 | 67 | #ifdef __cplusplus 68 | extern "C" { 69 | #endif 70 | 71 | 72 | //PrintHello : 73 | 74 | extern void PrintHello(); 75 | 76 | //Sum : 77 | 78 | extern GoInt Sum(GoInt p0, GoInt p1); 79 | 80 | //stringtest : 81 | 82 | extern void stringtest(char* p0); 83 | 84 | #ifdef __cplusplus 85 | } 86 | #endif 87 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | "# GolanginChsarp" 2 | --------------------------------------------------------------------------------