Telegram Group & Telegram Channel
Что такое Zero value в Go

Zero value это дефолтное состояние переменных. Например, когда вы создаете переменную структуры, все её поля будут автоматически инициализированы своими нулевыми значениями.

В Go переменные всегда инициализируются нулевыми значениями при их создании. Это позволяет безопасно работать с ними, не беспокоясь о возможных неинициализированных значениях.

Значение зависит от типа переменной:
числовые типы (int, float64) — 0
булевые типы — false
для строк — пустая строка ""
указатели, функции, интерфейсы, срезы, карты и каналы — nil
массивы и структуры — нулевые значения соответствующих типов

🐸 Библиотека Go для собеса
Please open Telegram to view this post
VIEW IN TELEGRAM



tg-me.com/go_interview_lib/911
Create:
Last Update:

Что такое Zero value в Go

Zero value это дефолтное состояние переменных. Например, когда вы создаете переменную структуры, все её поля будут автоматически инициализированы своими нулевыми значениями.

В Go переменные всегда инициализируются нулевыми значениями при их создании. Это позволяет безопасно работать с ними, не беспокоясь о возможных неинициализированных значениях.

Значение зависит от типа переменной:
числовые типы (int, float64) — 0
булевые типы — false
для строк — пустая строка ""
указатели, функции, интерфейсы, срезы, карты и каналы — nil
массивы и структуры — нулевые значения соответствующих типов

🐸 Библиотека Go для собеса

BY Библиотека Go для собеса | вопросы с собеседований


Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283

Share with your friend now:
tg-me.com/go_interview_lib/911

View MORE
Open in Telegram


telegram Telegram | DID YOU KNOW?

Date: |

Telegram auto-delete message, expiring invites, and more

elegram is updating its messaging app with options for auto-deleting messages, expiring invite links, and new unlimited groups, the company shared in a blog post. Much like Signal, Telegram received a burst of new users in the confusion over WhatsApp’s privacy policy and now the company is adopting features that were already part of its competitors’ apps, features which offer more security and privacy. Auto-deleting messages were already possible in Telegram’s encrypted Secret Chats, but this new update for iOS and Android adds the option to make messages disappear in any kind of chat. Auto-delete can be enabled inside of chats, and set to delete either 24 hours or seven days after messages are sent. Auto-delete won’t remove every message though; if a message was sent before the feature was turned on, it’ll stick around. Telegram’s competitors have had similar features: WhatsApp introduced a feature in 2020 and Signal has had disappearing messages since at least 2016.

The SSE was the first modern stock exchange to open in China, with trading commencing in 1990. It has now grown to become the largest stock exchange in Asia and the third-largest in the world by market capitalization, which stood at RMB 50.6 trillion (US$7.8 trillion) as of September 2021. Stocks (both A-shares and B-shares), bonds, funds, and derivatives are traded on the exchange. The SEE has two trading boards, the Main Board and the Science and Technology Innovation Board, the latter more commonly known as the STAR Market. The Main Board mainly hosts large, well-established Chinese companies and lists both A-shares and B-shares.

telegram from ye


Telegram Библиотека Go для собеса | вопросы с собеседований
FROM USA