Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to add golang code? #4

Open
cupen opened this issue Oct 20, 2020 · 4 comments
Open

How to add golang code? #4

cupen opened this issue Oct 20, 2020 · 4 comments

Comments

@cupen
Copy link

cupen commented Oct 20, 2020

I can write a script to generate GO directory, then fill some files consists by the document of C# version and go code.

ENG/C#
ENG/GO

RUS/C#
RUS/GO

But it will make a lot of repetitive text. Maybe it's not a good solution.

@cupen cupen changed the title refactor directory 太热额. refactor directrices tree. Oct 20, 2020
@cupen cupen changed the title refactor directrices tree. refactor directories tree. Oct 20, 2020
@cupen cupen changed the title refactor directories tree. How to add golang code of examples? Oct 20, 2020
@cupen
Copy link
Author

cupen commented Oct 20, 2020

I would like this interactive tab, but it is more html. 😃 Any suggestions?
https://proto.actor/docs/hello-world/

@cupen cupen changed the title How to add golang code of examples? How to add golang code? Oct 21, 2020
@cupen
Copy link
Author

cupen commented Nov 9, 2020

How about this? Add some links of other languages to your C# version.

examples
├── unit-1
│   └── lesson-1
│       ├── csharp
│       │   ├── Program.cs
│       │   └── project.xml
│       ├── golang
│       │   ├── main.go
│       │   └── other.go
│       └── python
│           └── main.py
└── unit-2
    └── lesson-1
        ├── csharp
        │   ├── Program.cs
        │   └── project.xml
        ├── golang
        │   ├── main.go
        │   └── other.go
        └── python
            └── main.py

e.g.:


Let's look at an example of what might look like a message class written in C#. other languages

private class ExampleMessage
{
    public int CustomerID { get; }

    public Hello(int customerId)
    {
        CustomerID = customerId;
    }
}

@Valentin-Miroshnichenko Any suggestions?

@rogeralsing
Copy link
Contributor

@cupen on the proto.actor website, we have code snippets in Tabs, where users can switch language.
I think that would be the easiest in the end to maintain, so there is only one copy of the bootcamp itself, but with multiple snippets. (and example code folders)

We have tried to maintain different language versions of docs in the past and its very hard to keep all bits in sync

@cupen
Copy link
Author

cupen commented Dec 30, 2020

@rogeralsing Yes, I agree with you. Tabs is really good, but it's not supported by github flavored markdown.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants