Skip to content

Commit 48f3108

Browse files
authored
Merge pull request #59 from southworks/2.1.0
update package.json and package-lock.json
2 parents cb41de5 + f6ee93b commit 48f3108

File tree

3 files changed

+9
-74
lines changed

3 files changed

+9
-74
lines changed

README.md

Lines changed: 4 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -85,29 +85,9 @@ For example:
8585

8686
# Support
8787

88-
## Constants/Variables
89-
90-
#### Examples
91-
92-
|TS|C#|GO|Visual Basic
93-
|-|-|-|-|
94-
|`const CONST_VALUE: string = "THIS IS A CONSTANT";`|`public const string CONST_VALUE = "THIS IS A CONSTANT";`|`const CONST_VALUE string = "THIS IS A CONSTANT"`|`Const CONST_VALUE As String = "THIS IS A CONSTANT"`|
95-
|`let foo: number = 50;`|`public static int Foo = 50;`|`var Foo int = 50`|`Dim Foo AS Integer = 50`
96-
|`var foo: number = 50;`|`public static int Foo = 50;`|`var Foo int = 50`|`Dim Foo AS Integer = 50`
97-
98-
- In C# those are wrapped into a static class
99-
100-
```csharp
101-
namespace xxx
102-
{
103-
public static class Helper
104-
{
105-
public static int Foo = 50;
106-
}
107-
}
108-
```
88+
Fully documented support at [Wiki](https://github.com/southworks/codeverter/wiki)
10989

110-
#### Support
90+
## Constants/Variables
11191

11292
||C#|GO|Visual Basic|
11393
|-|-|-|-|
@@ -116,16 +96,6 @@ namespace xxx
11696

11797
## Enums
11898

119-
#### Examples
120-
121-
|TS|C#|GO|Visual Basic|
122-
|-|-|-|-|
123-
|<pre><code>export enum Animals {<div> Dog = 1,</div><div> Cat = 2</div>}</code></pre>|<pre><code>public enum Animals<div>{</div><div> Dog = 1,</div><div> Cat = 2</div>}</code></pre>|<pre><code>const (<div> Dog int = 1</div><div> Cat = 2</div>)</code></pre>|<pre><code>Enum Animals<div></div><div> Dog = 1</div><div> Cat = 2</div>End Enum</code></pre>|
124-
|<pre><code>export enum Animals {<div> Dog = "dog",</div><div> Cat = "cat"</div>}</code></pre>|<pre><code>public enum Animals<div>{</div><div> Dog = "dog",</div><div> Cat = "cat"</div>}</code></pre>|<pre><code>const (<div> Dog string = "dog"</div><div> Cat = "cat"</div>)</code></pre>|<pre><code>Enum Animals<div></div><div> Dog</div><div> Cat</div>End Enum</code></pre>|
125-
|<pre><code>export enum Animals {<div> Dog,</div><div> Cat</div>}</code></pre>|<pre><code>public enum Animals {<div> Dog,</div><div> Cat</div>}</code></pre>|<pre><code>const (<div> Dog int = iota</div><div> Cat</div>)</code></pre>|<pre><code>Enum Animals<div></div><div> Dog</div><div> Cat</div>End Enum</code></pre>|
126-
127-
#### Support
128-
12999
||C#|GO|Visual Basic|
130100
|-|-|-|-|
131101
|Numeric|:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:|
@@ -134,14 +104,6 @@ namespace xxx
134104

135105
## Interfaces
136106

137-
#### Examples
138-
139-
|TS|C#|GO|Visual Basic|
140-
|-|-|-|-|
141-
|<pre><code>export interface Printable {<div> content: string;</div><div> doPrint(): void;</div>}</code></pre>|<pre><code>public interface IPrintable<div>{</div><div> string Content { get; set; }</div><div> void DoPrint();</div>}</code></pre>|<pre><code>type Printable interface {<div> DoPrint()</div>}</code></pre>|<pre><code>Public Interface IPrintable<div></div><div> Property Content As String</div><div> Sub DoPrint()</div>End Interface</code></pre>|
142-
143-
#### Support
144-
145107
||C#|GO|Visual Basic|
146108
|-|-|-|-|
147109
|Members|:heavy_check_mark:|:x:|:heavy_check_mark:|
@@ -151,8 +113,6 @@ namespace xxx
151113

152114
## Classes
153115

154-
#### Support
155-
156116
||C#|GO|Visual Basic|
157117
|-|-|-|-|
158118
|Inheritance|:heavy_check_mark:|:heavy_check_mark:*|:heavy_check_mark:|
@@ -161,19 +121,11 @@ namespace xxx
161121
|Static|P|P||
162122

163123
_*In a go way, using composition_
124+
164125
_\*\*Using naming conventions_
165126

166127
### Constructors
167128

168-
#### Examples
169-
170-
Consider a class named **Cat**
171-
|TS|C#|GO|Visual Basic|
172-
|-|-|-|-|
173-
|<pre><code>constructor(arg: number) {<div> /\*content*/</div>}</code></pre>|<pre><code>public Cat(int arg)<div>{</div><div> // /\*content*/</div>}</code></pre>|<pre><code>func NewCat(arg int) \*Cat {<div> c := Cat{}</div><div> // /\*content*/</div><div> return &c</div>}</code></pre>|<pre><code>Public Sub Cat(arg As Integer)<div></div><div> // /\*content*/</div>End Sub</code></pre>|
174-
175-
#### Support
176-
177129
||C#|GO|Visual Basic|
178130
|-|-|-|-|
179131
|Visibility|:heavy_check_mark:|:x:|:heavy_check_mark:|
@@ -182,16 +134,6 @@ Consider a class named **Cat**
182134

183135
### Properties
184136

185-
#### Examples
186-
187-
|TS|C#|GO|Visual Basic|
188-
|-|-|-|-|
189-
|`public name: string;`|`public string Name { get; set; }`|`Name string`|`Public Property Name AS String`|
190-
|`protected name: string;`|`protected string Name { get; set; }`|`name string`|`Protected Property Name AS String`|
191-
|`private name: string;`|`private string Name { get; set; }`|`name string`|`Private Property Name AS String`|
192-
193-
#### Support
194-
195137
||C#|GO|Visual Basic|
196138
|-|-|-|-|
197139
|Visibility|:heavy_check_mark:|:heavy_check_mark:*|:heavy_check_mark:|
@@ -200,14 +142,6 @@ _*Naming convention for pubic or private, protected is considered private_
200142

201143
### Methods/Functions
202144

203-
#### Examples
204-
205-
||C#|GO|Visual Basic|
206-
|-|-|-|-|
207-
|<pre><code>public foo(): void {<div> /* a lot of work! */ </div>}</code></pre>|<pre><code>public void Foo()<div>{</div><div> ///\* a lot of work! */</div><div> return;</div>}</code></pre>|<pre><code>func (f \*Cat) Foo() {<div> ///\* a lot of work! */</div><div> return</div>}</code></pre>|<pre><code>Public Sub Foo()<div></div><div> ' /* a lot of work! */</div><div></div>End Sub</code></pre>
208-
209-
#### Support
210-
211145
||C#|GO|Visual Basic|
212146
|-|-|-|-|
213147
|Visibility|:heavy_check_mark:|:heavy_check_mark:*|:heavy_check_mark:|
@@ -216,4 +150,5 @@ _*Naming convention for pubic or private, protected is considered private_
216150
|Default return value|:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:**|
217151

218152
_*Naming convention for pubic or private, protected is considered private_
153+
219154
_\*\*As functions_

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@southworks/codeverter",
3-
"version": "2.0.3",
3+
"version": "2.1.0",
44
"description": "Convert TypeScript code into different languages",
55
"main": "lib/lib.js",
66
"bin": {
@@ -67,4 +67,4 @@
6767
}
6868
}
6969
}
70-
}
70+
}

0 commit comments

Comments
 (0)