جولة Go التفاعلية بالعربي › مرحبًا! 1 / 7 التالي

مرحبًا، أيها العالم

مرحبًا، أيها العالم

مرحبًا بك في جولة في لغة البرمجة Go.

تنقسم الجولة إلى قائمة من الوحدات التي يمكنك الوصول إليها بالنقر على جولة في Go في أعلى يسار الصفحة.

يمكنك أيضًا عرض جدول المحتويات في أي وقت بالنقر على القائمة في أعلى يمين الصفحة.

ستجد خلال الجولة سلسلة من الشرائح والتمارين التي عليك إكمالها.

يمكنك التنقل بينها باستخدام

  • "السابق" أو PageUp للانتقال إلى الصفحة السابقة،
  • "التالي" أو PageDown للانتقال إلى الصفحة التالية.

الجولة تفاعلية. انقر على زر تشغيل الآن (أو اضغط على Shift + Enter) لترجمة البرنامج وتشغيله على خادم بعيد. تُعرض النتيجة أسفل الشيفرة.

توضّح هذه البرامج النموذجية جوانب مختلفة من Go. وتهدف برامج الجولة إلى أن تكون نقاط انطلاق لتجاربك الخاصة.

عدّل البرنامج وشغّله مجددًا.

عندما تنقر على تنسيق (الاختصار: Ctrl + Enter)، يُنسَّق النص في المحرّر باستخدام أداة gofmt.

عندما تكون مستعدًا للمتابعة، انقر على السهم الأيمن أدناه أو اضغط على مفتاح PageDown.

النص الأصلي بالإنجليزية

Hello, 世界

Welcome to a tour of the Go programming language.

The tour is divided into a list of modules that you can access by clicking on A Tour of Go on the top left of the page.

You can also view the table of contents at any time by clicking on the menu on the top right of the page.

Throughout the tour you will find a series of slides and exercises for you to complete.

You can navigate through them using

  • "previous" or PageUp to go to the previous page,
  • "next" or PageDown to go to the next page.

The tour is interactive. Click the Run button now (or press Shift + Enter) to compile and run the program on a remote server. The result is displayed below the code.

These example programs demonstrate different aspects of Go. The programs in the tour are meant to be starting points for your own experimentation.

Edit the program and run it again.

When you click on Format (shortcut: Ctrl + Enter), the text in the editor is formatted using the gofmt tool. You can switch syntax highlighting on and off by clicking on the syntax button.

When you're ready to move on, click the right arrow below or type the PageDown key.

هذا الدرس للقراءة فقط؛ جرّب المثال في الدرس التالي.

استعادة المثال الأصلي؟

ستُحذف تعديلاتك على شيفرة هذا الدرس، ويعود المثال كما ورد في الكتاب. لا يتغيّر اختيارك لمحرك التشغيل.