{"id":276508,"date":"2016-03-19T21:58:02","date_gmt":"2016-03-19T18:58:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=276508"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=276508","title":{"rendered":"man!( Go =&gt; D ).basics"},"content":{"rendered":"<p>       \u0415\u0441\u043b\u0438 \u0432\u044b \u0443\u0436\u0435 \u043d\u0430\u0438\u0433\u0440\u0430\u043b\u0438\u0441\u044c \u0441 Go, \u0443\u0441\u0442\u0430\u043b\u0438 \u043e\u0442 \u043a\u043e\u043f\u0438\u043f\u0430\u0441\u0442\u044b, \u0440\u0443\u0447\u043d\u043e\u0433\u043e \u0436\u043e\u043d\u0433\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0442\u0438\u043f\u0430\u043c\u0438 \u0438 \u043f\u043e\u0434\u0443\u043c\u044b\u0432\u0430\u0435\u0442\u0435 \u0432\u0435\u0440\u043d\u0443\u0442\u044c\u0441\u044f \u043d\u0430 \u043a\u0430\u043a\u043e\u0439-\u043d\u0438\u0431\u0443\u0434\u044c Python \u0438\u043b\u0438, \u043f\u0440\u043e\u0441\u0442\u0438 \u0433\u043e\u0441\u043f\u043e\u0434\u0438, PHP, \u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044c\u0442\u0435 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0438\u0442\u044c \u0432\u0430\u043c \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u044f\u0437\u044b\u043a D, \u0433\u0434\u0435 \u0442\u0438\u043f\u0438\u0437\u0430\u0446\u0438\u044f \u0445\u043e\u0442\u044c \u0438 \u0442\u043e\u0436\u0435 \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0430\u044f, \u043d\u043e \u043e\u043d\u0430 \u043d\u0435 \u043f\u0443\u0442\u0430\u0435\u0442\u0441\u044f \u043f\u043e\u0434 \u043d\u043e\u0433\u0430\u043c\u0438 \u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u0438\u0441\u0430\u0442\u044c \u043d\u0435 \u043c\u0435\u043d\u0435\u0435 \u0432\u044b\u0440\u0430\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043a\u043e\u0434, \u0447\u0435\u043c \u043d\u0430 \u044f\u0437\u044b\u043a\u0430\u0445 \u0441 \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0442\u0438\u043f\u0438\u0437\u0430\u0446\u0438\u0435\u0439. \u0410 \u0447\u0442\u043e\u0431\u044b \u043f\u0435\u0440\u0435\u0445\u043e\u0434 \u0431\u044b\u043b \u043d\u0435 \u0442\u0430\u043a\u043e\u0439 \u0431\u043e\u043b\u0435\u0437\u043d\u0435\u043d\u043d\u044b\u0439, \u0432\u0430\u0448\u0435\u043c\u0443 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u044e \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442\u0441\u044f \u043f\u0435\u0440\u0435\u0432\u043e\u0434 <a href=\"https:\/\/tour.golang.org\/list\">Tour of the Go<\/a> c \u044d\u043a\u0432\u0438\u0432\u0430\u043b\u0435\u043d\u0442\u043d\u044b\u043c \u043a\u043e\u0434\u043e\u043c \u043d\u0430 <a href=\"http:\/\/dlang.org\/\">D<\/a> \u0438 \u043a\u0440\u0430\u0442\u043a\u0438\u043c\u0438 \u043f\u043e\u044f\u0441\u043d\u0435\u043d\u0438\u044f\u043c\u0438.<\/p>\n<h1>\u0427\u0430\u0441\u0442\u044c \u043f\u0435\u0440\u0432\u0430\u044f. \u041e\u0441\u043d\u043e\u0432\u044b.<\/h1>\n<p><a name=\"habracut\"><\/a>  <\/p>\n<h2>Hello World<\/h2>\n<p>  <a href=\"https:\/\/tour.golang.org\/welcome\/1\">Go<\/a><\/p>\n<pre><code class=\"go\">package main  import &quot;fmt&quot;  func main() {     fmt.Println(&quot;Hello, \u4e16\u754c&quot;) }<\/code><\/pre>\n<p>  <a href=\"http:\/\/dpaste.dzfl.pl\/2b25df9b2ccc\">D<\/a><\/p>\n<pre><code>module main;  import std.stdio;  void main() {     \/\/ stdout.writeln( &quot;Hello, \u4e16\u754c&quot; );     writeln( &quot;Hello, \u4e16\u754c&quot; ); }<\/code><\/pre>\n<p>  \u0420\u0430\u0437\u043d\u0438\u0446\u0430 \u043d\u0435 \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u0430\u044f, \u0440\u0430\u0437\u0432\u0435 \u0447\u0442\u043e \u0432 D \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u043e \u0438\u043c\u0451\u043d \u043c\u043e\u0436\u043d\u043e \u043d\u0435 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c, \u0435\u0441\u043b\u0438 \u043d\u0435\u0442 \u043a\u043e\u043d\u0444\u043b\u0438\u043a\u0442\u0430 \u0438\u043c\u0451\u043d \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u0438\u0437 \u0440\u0430\u0437\u043d\u044b\u0445 \u043c\u043e\u0434\u0443\u043b\u0435\u0439. \u0422\u0430\u043a\u0436\u0435 \u0441\u0442\u043e\u0438\u0442 \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u044c \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0442\u043e\u0447\u043a\u0438 \u0441 \u0437\u0430\u043f\u044f\u0442\u044b\u043c\u0438 \u0432 \u043a\u043e\u043d\u0446\u0435 \u0441\u0442\u0440\u043e\u043a \u2014 \u0432 D \u043e\u043d\u0438, \u043a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e, \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b.<\/p>\n<h2>Packages<\/h2>\n<p>  <a href=\"https:\/\/tour.golang.org\/basics\/1\">Go<\/a><\/p>\n<pre><code class=\"go\">package main  import (     &quot;fmt&quot;     &quot;math\/rand&quot; )  func main() {     fmt.Println(&quot;My favorite number is&quot;, rand.Intn(10)) }<\/code><\/pre>\n<p>  <a href=\"http:\/\/dpaste.dzfl.pl\/98c11426ff17\">D<\/a><\/p>\n<pre><code>module main;  import std.stdio; import std.random;  void main() {     writeln( &quot;My favorite number is &quot;, uniform( 0 , 10 ) ); }<\/code><\/pre>\n<p>  \u0422\u0443\u0442 \u0442\u043e\u0436\u0435 \u0432\u0441\u0451 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u043e, \u0440\u0430\u0437\u0432\u0435 \u0447\u0442\u043e \u0432 Go \u043f\u0440\u0438 \u0438\u043c\u043f\u043e\u0440\u0442\u0435 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u0443\u0442\u044c \u043a \u043c\u043e\u0434\u0443\u043b\u044e, \u0430 \u0432 D \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0438\u043c\u044f \u043c\u043e\u0434\u0443\u043b\u044f, \u0437\u0430\u0434\u0430\u0432\u0430\u0435\u043c\u043e\u0435 \u0434\u0438\u0440\u0435\u043a\u0442\u0438\u0432\u043e\u0439 &quot;module&quot;, \u0438\u043b\u0438 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0432\u044b\u0432\u043e\u0434\u0438\u043c\u043e\u0435 \u0438\u0437 \u043f\u0443\u0442\u0438 \u043a \u0444\u0430\u0439\u043b\u0443, \u0435\u0441\u043b\u0438 \u044d\u0442\u0430 \u0434\u0438\u0440\u0435\u043a\u0442\u0438\u0432\u0430 \u043d\u0435 \u0443\u043a\u0430\u0437\u0430\u043d\u0430. <\/p>\n<h2>Imports<\/h2>\n<p>  <a href=\"https:\/\/tour.golang.org\/basics\/2\">\u0412 Go \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442\u0441\u044f \u0433\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438\u043c\u043f\u043e\u0440\u0442\u044b \u0432 \u043e\u0434\u043d\u0443 \u0434\u0438\u0440\u0435\u043a\u0442\u0438\u0432\u0443.<\/a><\/p>\n<pre><code class=\"go\">package main  import (     &quot;fmt&quot;     &quot;math&quot; )  func main() {     fmt.Printf(&quot;Now you have %g problems.&quot;, math.Sqrt(7)) }<\/code><\/pre>\n<p>  <a href=\"http:\/\/dpaste.dzfl.pl\/638d82048cd2\">\u0412 D \u0442\u043e\u0436\u0435 \u0442\u0430\u043a \u043c\u043e\u0436\u043d\u043e, \u043d\u043e \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0438 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441\u0430 \u043d\u0435 \u0440\u0430\u0441\u043f\u043e\u043b\u0430\u0433\u0430\u044e\u0442 \u043a \u044d\u0442\u043e\u043c\u0443:<\/a><\/p>\n<pre><code>module main;  import     std.stdio,     std.math;  void main() {     writefln( &quot;Now you have %f problems.&quot;, 7f.sqrt ); }<\/code><\/pre>\n<p>  <a href=\"http:\/\/dpaste.dzfl.pl\/ab74342644e4\">\u041a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e, \u0432 D \u0438\u043c\u043f\u043e\u0440\u0442\u044b \u043c\u043e\u0436\u043d\u043e \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0432 \u043b\u044e\u0431\u043e\u043c \u0431\u043b\u043e\u043a\u0435, \u0430 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u043d\u0430\u0447\u0430\u043b\u0435 \u0444\u0430\u0439\u043b\u0430:<\/a><\/p>\n<pre><code>module main;  void main() {     import std.stdio;      {         import std.math;         writefln( &quot;Now you have %f problems.&quot;, 7f.sqrt );     }      writefln( &quot;Now you have %f problems.&quot;, 7f.sqrt ); \/\/ Error: no property 'sqrt' for type 'float' }<\/code><\/pre>\n<p>  <\/p>\n<h2>Exported names<\/h2>\n<p>  <a href=\"https:\/\/tour.golang.org\/basics\/3\">\u0412 Go \u043c\u043e\u0434\u0443\u043b\u044c \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u0442 \u043b\u0438\u0448\u044c \u0442\u043e, \u0447\u0442\u043e \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u0441 \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0431\u0443\u043a\u0432\u044b:<\/a><\/p>\n<pre><code>package main  import (     &quot;fmt&quot;     &quot;math&quot; )  func main() {     fmt.Println(math.pi) \/\/ cannot refer to unexported name math.pi }<\/code><\/pre>\n<p>  \u0412 D \u0436\u0435 \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043b\u0438\u0448\u044c \u0442\u043e, \u0447\u0442\u043e \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u043e \u0432 public \u0441\u0435\u043a\u0446\u0438\u0438 \u043c\u043e\u0434\u0443\u043b\u044f (\u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e), \u043b\u0438\u0431\u043e \u043f\u043e\u043c\u0435\u0447\u0435\u043d\u043e \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u043e\u043c \u0434\u043e\u0441\u0442\u0443\u043f\u0430 public:<\/p>\n<pre><code>module math;  import std.math;  auto PI = std.math.PI;  private:  public auto pip = std.math.PI;  auto pi = std.math.PI;<\/code><\/pre>\n<p>  <\/p>\n<pre><code>module main;  import std.stdio; import math;  void main() {     writeln( PI );     writeln( pi ); \/\/ Error: module main variable math.pi is private     writeln( pip ); }<\/code><\/pre>\n<p>  <a href=\"https:\/\/dlang.org\/spec\/module.html\">\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u043e \u043c\u043e\u0434\u0443\u043b\u044c\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 D.<\/a><\/p>\n<h2>Functions<\/h2>\n<p>  <a href=\"https:\/\/tour.golang.org\/basics\/4\">Go<\/a><\/p>\n<pre><code class=\"go\">package main  import &quot;fmt&quot;  \/\/ func add(x int, y int) int { func add(x, y int) int {     return x + y }  func main() {     fmt.Println(add(42, 13)) }<\/code><\/pre>\n<p>  <a href=\"http:\/\/dpaste.dzfl.pl\/fac4f221e7e6\">D<\/a><\/p>\n<pre><code>module main;  import std.stdio;  int add( int x , int y ) {     return x + y; }  void main() {     \/\/ writeln( add( 42 , 13 ) );     writeln( 42.add( 13 ) ); }<\/code><\/pre>\n<p>  \u0412 Go \u0442\u0438\u043f \u043e\u0431\u044b\u0447\u043d\u043e \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0432 \u043a\u043e\u043d\u0446\u0435, \u0430 \u0432 D \u2014 \u0431\u043e\u043b\u0435\u0435 \u0442\u0440\u0430\u0434\u0438\u0446\u0438\u043e\u043d\u043d\u043e \u2014 \u0432 \u043d\u0430\u0447\u0430\u043b\u0435. \u041a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e, \u043b\u044e\u0431\u0443\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0432 D \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u0437\u0432\u0430\u0442\u044c \u043a\u0430\u043a \u043c\u0435\u0442\u043e\u0434, \u0447\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u044d\u043b\u0435\u0433\u0430\u043d\u0442\u043d\u043e \u0440\u0430\u0441\u0448\u0438\u0440\u044f\u0442\u044c \u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0438\u0435 \u0442\u0438\u043f\u044b. Go \u0436\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043d\u0435 \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u0442\u044c \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0435 \u0442\u0438\u043f\u044b \u0438\u0434\u0443\u0449\u0438\u0445 \u0434\u0440\u0443\u0433 \u0437\u0430 \u0434\u0440\u0443\u0433\u043e\u043c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432. \u0422\u0443\u0442 \u0436\u0435 \u0441\u0442\u043e\u0438\u0442 \u0443\u043f\u043e\u043c\u044f\u043d\u0443\u0442\u044c <a href=\"http:\/\/dpaste.dzfl.pl\/e471b3d5f7b3\">\u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0435 \u0432 Go \u043e\u0431\u043e\u0431\u0449\u0451\u043d\u043d\u043e\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0435\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0441\u0440\u0430\u0437\u0443 \u0434\u043b\u044f \u043b\u044e\u0431\u044b\u0445 \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0449\u0438\u0445 \u0442\u0438\u043f\u043e\u0432<\/a>:<\/p>\n<pre><code>module main;  import std.stdio;  auto add( X , Y )( X x , Y y ) {     return x + y; \/\/ Error: incompatible types for ((x) + (y)): 'int' and 'string' }  void main() {     \/\/ writeln( 42.add!( int , float )( 13.3 ) );     writeln( 42.add( 13.3 ) ); \/\/ 55.3     writeln( 42.add( &quot;WTF?&quot; ) ); \/\/ Error: template instance main.add!(int, string) error instantiating }<\/code><\/pre>\n<p>  <a href=\"https:\/\/dlang.org\/spec\/template.html#function-templates\">\u0412 D \u0434\u043b\u044f \u043b\u044e\u0431\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043c\u043e\u0436\u043d\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0432 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u043a\u0440\u0443\u0433\u043b\u044b\u0445 \u0441\u043a\u043e\u0431\u043a\u0430\u0445 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438<\/a>, \u043a\u0443\u0434\u0430 \u043c\u043e\u0436\u043d\u043e \u043b\u0438\u0431\u043e \u044f\u0432\u043d\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c \u0442\u0438\u043f\u044b, \u043b\u0438\u0431\u043e \u043e\u043d\u0438 \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u0432\u044b\u0432\u0435\u0434\u0435\u043d\u044b \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u043e\u043c \u0438\u0437 \u0442\u0438\u043f\u043e\u0432 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u0432.<\/p>\n<h2>Multiple results<\/h2>\n<p>  <a href=\"https:\/\/tour.golang.org\/basics\/6\">Go<\/a><\/p>\n<pre><code class=\"go\">package main  import &quot;fmt&quot;  func swap(x, y string) (string, string) {     return y, x }  func main() {     a, b := swap(&quot;hello&quot;, &quot;world&quot;)     fmt.Println(a, b) }<\/code><\/pre>\n<p>  <a href=\"http:\/\/dpaste.dzfl.pl\/66e8b4f1fa8a\">\u0412 D \u043d\u0435\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0442\u0438\u0442\u044c \u0438\u0437 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439, \u043d\u043e \u043c\u043e\u0436\u043d\u043e \u0432\u0435\u0440\u043d\u0443\u0442\u044c \u043a\u043e\u0440\u0442\u0435\u0436:<\/a><\/p>\n<pre><code>module main;  import std.stdio; import std.typecons;  auto swap( Item )( Item[2] arg... ) {     return tuple( arg[1] , arg[0] ); }  void main()  {     auto res = swap( &quot;hello&quot; , &quot;world&quot; );     writeln( res[0] , res[1] ); \/\/ worldhello }<\/code><\/pre>\n<p>  <a href=\"http:\/\/dpaste.dzfl.pl\/dc1d134371da\">\u0410 \u043f\u0440\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u043c\u043e\u0436\u043d\u043e \u0438 \u0440\u0430\u0441\u043f\u0430\u043a\u043e\u0432\u0430\u0442\u044c \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c\u044b\u0439 \u043a\u043e\u0440\u0442\u0435\u0436 \u0432 \u0443\u0436\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435:<\/a><\/p>\n<pre><code>module main;  import std.stdio; import std.meta; import std.typecons;  auto swap( Item )( Item[2] arg... ) {     return tuple( arg[1] , arg[0] ); }  void main()  {     string a , b;     AliasSeq!( a , b ) = swap( &quot;hello&quot; , &quot;world&quot; );     writeln( a , b ); \/\/ worldhello }<\/code><\/pre>\n<p>  <\/p>\n<h2>Named return values<\/h2>\n<p>  <a href=\"https:\/\/tour.golang.org\/basics\/7\">Go<\/a><\/p>\n<pre><code class=\"go\">package main  import &quot;fmt&quot;  func split(sum int) (x, y int) {     x = sum * 4 \/ 9     y = sum - x     return }  func main() {     fmt.Println(split(17)) }<\/code><\/pre>\n<p>  <a href=\"http:\/\/dpaste.dzfl.pl\/ff38179ae419\">\u0414\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0441\u043e\u043c\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0441\u0430\u0445\u0430\u0440. D \u043d\u0438\u0447\u0435\u0433\u043e \u0442\u0430\u043a\u043e\u0433\u043e \u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442, \u0442\u0430\u043a \u0447\u0442\u043e \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c \u043b\u0438\u0431\u043e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443, \u043b\u0438\u0431\u043e \u043e\u043f\u044f\u0442\u044c \u0436\u0435 \u043a\u043e\u0440\u0442\u0435\u0436, \u043d\u043e \u0441 \u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u043d\u044b\u043c\u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c\u0438:<\/a><\/p>\n<pre><code>module main;  import std.stdio; import std.typecons;  auto split( int sum ) {     auto x = sum * 4 \/ 9;     auto y = sum - x;     return tuple!( &quot;x&quot; , &quot;y&quot; )( x , y ); }  void main()  {     \/\/ auto res = split( 17 ); writeln( res.x , res.y );     \/\/ writeln( split( 17 )[] );     writeln( 17.split[] ); \/\/ 710 }<\/code><\/pre>\n<p>  \u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 [] \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0442\u0430\u043a \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u043c\u044b\u0439 &quot;\u0441\u0440\u0435\u0437&quot;, \u0442\u043e \u0435\u0441\u0442\u044c \u043c\u0430\u0441\u0441\u0438\u0432 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432.<\/p>\n<p>  <a href=\"https:\/\/dlang.org\/phobos\/std_typecons.html#.Tuple\">\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u043e \u043a\u043e\u0440\u0442\u0435\u0436\u0430\u0445 \u0432 D.<\/a><\/p>\n<h2>Variables<\/h2>\n<p>  <a href=\"https:\/\/tour.golang.org\/basics\/8\">Go<\/a><\/p>\n<pre><code class=\"go\">package main  import &quot;fmt&quot;  var c, python, java bool  func main() {     var i int     fmt.Println(i, c, python, java) }<\/code><\/pre>\n<p>  <a href=\"http:\/\/dpaste.dzfl.pl\/ac108f1ae426\">D<\/a><\/p>\n<pre><code>module main;  import std.stdio;  \/\/ bool c , python , java; bool c; bool python; bool java;  void main()  {     int i;     writeln( i , c , python , java ); \/\/ 0falsefalsefalse }<\/code><\/pre>\n<p>  \u0412 \u0446\u0435\u043b\u043e\u043c, \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u0445\u043e\u0436\u0438, \u0440\u0430\u0437\u0432\u0435 \u0447\u0442\u043e \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441 Go \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0431\u043e\u043b\u0435\u0435 \u043c\u043d\u043e\u0433\u043e\u0441\u043b\u043e\u0432\u0435\u043d.<\/p>\n<h2>Short variable declarations<\/h2>\n<p>  <a href=\"https:\/\/tour.golang.org\/basics\/10\">Go<\/a><\/p>\n<pre><code class=\"go\">package main  import &quot;fmt&quot;  func main() {     var i, j int = 1, 2     k := 3     c, python, java := true, false, &quot;no!&quot;      fmt.Println(i, j, k, c, python, java) }<\/code><\/pre>\n<p>  <a href=\"http:\/\/dpaste.dzfl.pl\/ce3007e3f95f\">D<\/a><\/p>\n<pre><code>module main;  import std.stdio;  void main()  {     int i = 1 , j = 2;     auto k = 3;     auto c = true , python = false , java = &quot;no!&quot;;      writeln( i , j , k , c , python , java ); \/\/ 123truefalseno! }<\/code><\/pre>\n<p>  \u041e\u0431\u0430 \u044f\u0437\u044b\u043a\u0430 \u0443\u043c\u0435\u044e\u0442 \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u044c \u0442\u0438\u043f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u0438\u0437 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u044e\u0449\u0435\u0433\u043e \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f. \u041e\u0434\u043d\u0430\u043a\u043e \u043f\u043e\u0434\u0445\u043e\u0434 Go \u0441 \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u0438\u0435\u043c \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u043d\u0430 \u0441\u043f\u0438\u0441\u043e\u043a \u0438\u043c\u0451\u043d \u0438 \u0441\u043f\u0438\u0441\u043e\u043a \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043d\u0435 \u043d\u0430\u0433\u043b\u044f\u0434\u0435\u043d \u0438 \u043f\u0440\u043e\u0432\u043e\u0446\u0438\u0440\u0443\u0435\u0442 \u043e\u0448\u0438\u0431\u043a\u0438.<\/p>\n<h2>Basic types<\/h2>\n<p>  \u0422\u0430\u0431\u043b\u0438\u0446\u0430 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u044f \u0442\u0438\u043f\u043e\u0432:<\/p>\n<pre><code>Go          D ---------------------             void bool        bool  string      string  int         int byte        byte int8        byte int16       short int32       int int64       long  uint        unint uint8       ubyte uint16      ushort uint32      uint uint64      ulong  uintptr     size_t             ptrdiff_t  float32     float float64     double             real              ifloat             idouble             ireal complex64   cfloat complex128  cdouble             creal              char             wchar rune        dchar<\/code><\/pre>\n<p>  \u0421\u0443\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0435 \u0440\u0430\u0437\u043b\u0438\u0447\u0438\u0435 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0440\u0430\u0437\u043c\u0435\u0440 int \u0438 uint \u0432 Go \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b, \u0430 \u0432 D \u2014 \u043d\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u0442. \u0422\u0430\u043a\u0436\u0435 D \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u0438\u0440\u0443\u0435\u0442, \u0447\u0442\u043e\u0431\u044b \u043c\u043d\u0438\u043c\u044b\u0435 \u0447\u0438\u0441\u043b\u0430 \u043d\u0435 \u043f\u0435\u0440\u0435\u043f\u0443\u0442\u0430\u043b\u0438\u0441\u044c \u0441 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u043c\u0438. \u041a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e, D \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u0432\u0435\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u043c\u0438 \u0447\u0438\u0441\u043b\u0430\u043c\u0438 \u0431\u043e\u043b\u044c\u0448\u0435\u0433\u043e \u0440\u0430\u0437\u043c\u0435\u0440\u0430 (80 \u0431\u0438\u0442), \u0430 \u0441 \u0441\u0438\u043c\u0432\u043e\u043b\u0430\u043c\u0438 \u2014 \u043c\u0435\u043d\u044c\u0448\u0435\u0433\u043e (8 \u0438 16 \u0431\u0438\u0442). <a href=\"https:\/\/dlang.org\/spec\/type.html\">\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u043e \u0442\u0438\u043f\u0430\u0445 \u0432 D.<\/a><\/p>\n<p>  <a href=\"https:\/\/tour.golang.org\/basics\/11\">Go<\/a><\/p>\n<pre><code class=\"go\">package main  import (     &quot;fmt&quot;     &quot;math\/cmplx&quot; )  var (     ToBe   bool       = false     MaxInt uint64     = 1&lt;&lt;64 - 1     z      complex128 = cmplx.Sqrt(-5 + 12i) )  func main() {     const f = &quot;%T(%v)\\n&quot;     fmt.Printf(f, ToBe, ToBe)     fmt.Printf(f, MaxInt, MaxInt)     fmt.Printf(f, z, z) }<\/code><\/pre>\n<p>  <a href=\"http:\/\/dpaste.dzfl.pl\/b9ba564a605a\">D<\/a><\/p>\n<pre><code>module main;  import std.stdio; import std.math;  bool ToBe = false; ulong MaxInt = ulong.max; cdouble z = sqrt( -5 + 12i );  void main()  {     enum f = &quot;%s(%s)&quot;;     writefln( f , typeid( ToBe ) , ToBe ); \/\/ bool(false)     writefln ( f , typeid( MaxInt ) , MaxInt ); \/\/ ulong(18446744073709551615)     writefln( f , typeid( z ) , z ); \/\/ cdouble(2+3i) }<\/code><\/pre>\n<p>  \u0412 D \u0443 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0442\u0438\u043f\u0430 \u0435\u0441\u0442\u044c \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0438\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0435 \u0441 \u0442\u0438\u043f\u043e\u043c \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b. \u0421\u0442\u043e\u0438\u0442 \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u044c \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0447\u0442\u043e \u0432 D <a href=\"https:\/\/dlang.org\/spec\/enum.html\">\u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438<\/a> \u0441\u043e\u0437\u0434\u0430\u044e\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 \u043a\u043b\u044e\u0447\u0435\u0432\u043e\u0435 \u0441\u043b\u043e\u0432\u043e &quot;enum&quot; \u2014 \u0438\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0438\u043d\u043b\u0430\u0439\u043d\u0438\u0442\u0441\u044f \u0432 \u043c\u0435\u0441\u0442\u043e \u0438\u0445 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f. \u0410 \u0432\u043e\u0442 \u043a\u043b\u044e\u0447\u0435\u0432\u043e\u0435 \u0441\u043b\u043e\u0432\u043e &quot;const&quot; \u0438\u043c\u0435\u0435\u0442 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0438\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u2014 \u044d\u0442\u043e <a href=\"https:\/\/dlang.org\/spec\/const3.html\">\u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u0434\u043e\u0441\u0442\u0443\u043f\u0430<\/a>, \u0437\u0430\u043f\u0440\u0435\u0449\u0430\u044e\u0449\u0438\u0439 \u043d\u0430\u043c \u0438\u0437\u043c\u0435\u043d\u044f\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 (\u043d\u043e \u0432 \u0434\u0440\u0443\u0433\u043e\u043c \u043c\u0435\u0441\u0442\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0443 \u043d\u0430\u0441 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u043d\u0430 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435).<\/p>\n<h2>Zero values<\/h2>\n<p>  <a href=\"https:\/\/tour.golang.org\/basics\/12\">Go<\/a><\/p>\n<pre><code class=\"go\">package main  import &quot;fmt&quot;  func main() {     var i int     var f float64     var b bool     var s string     fmt.Printf(&quot;%v %v %v %q\\n&quot;, i, f, b, s) \/\/ 0 0 false &quot;&quot; }<\/code><\/pre>\n<p>  <a href=\"http:\/\/dpaste.dzfl.pl\/49d43ab743fe\">D<\/a><\/p>\n<pre><code>module main;  import std.stdio;  void main()  {     writefln( &quot;%s %s %s \\&quot;%s\\&quot;&quot; , int.init , double.init , bool.init , string.init ); \/\/ 0 nan false &quot;&quot; }<\/code><\/pre>\n<p>  \u0412 D \u0443 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0442\u0438\u043f\u0430 \u0435\u0441\u0442\u044c <a href=\"https:\/\/dlang.org\/spec\/property.html#init\">\u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0435 \u043f\u043e\u043b\u0435 &quot;init&quot;<\/a>, \u0445\u0440\u0430\u043d\u044f\u0449\u0435\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0442\u0438\u043f\u0430.<\/p>\n<h2>Type conversions<\/h2>\n<p>  <a href=\"https:\/\/tour.golang.org\/basics\/13\">Go \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u0440\u0443\u0447\u043d\u043e\u0433\u043e \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0430 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0438\u0437 \u043e\u0434\u043d\u043e\u0433\u043e \u0442\u0438\u043f\u0430 \u0432 \u0434\u0440\u0443\u0433\u043e\u0439:<\/a><\/p>\n<pre><code class=\"go\">package main  import (     &quot;fmt&quot;     &quot;math&quot; )  func main() {     var x int = 3     var y uint = 4     var f float64 = math.Sqrt(float64(uint(x*x) + uint(y*y)))     var z uint = uint(f)     fmt.Println(x, y, z) \/\/ 345 }<\/code><\/pre>\n<p>  <a href=\"http:\/\/dpaste.dzfl.pl\/d499e66d3895\">D \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0443\u043c\u0451\u043d, \u0447\u0442\u043e\u0431\u044b \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u0442\u044c \u0440\u0443\u0447\u043d\u043e\u0433\u043e \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0430 \u0442\u0438\u043f\u043e\u0432 \u043b\u0438\u0448\u044c \u043a\u043e\u0433\u0434\u0430 \u044d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u0438\u0432\u0435\u0441\u0442\u0438 \u043a \u043f\u043e\u0442\u0435\u0440\u0435 \u0434\u0430\u043d\u043d\u044b\u0445:<\/a><\/p>\n<pre><code>module main;  import std.stdio; import std.conv;  void main()  {     int x = 3;     uint y = 4;     double f = ( x^^2 + y^^2 )^^0.5;     uint z = f.to!uint;     writeln( x , y , z ); \/\/ 345 }<\/code><\/pre>\n<p>  <\/p>\n<h2>Numeric Constants<\/h2>\n<p>  <a href=\"https:\/\/tour.golang.org\/basics\/16\">\u0427\u0438\u0441\u043b\u0435\u043d\u043d\u044b\u0435 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b \u0432 Go \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442 \u0437\u0430\u0434\u0430\u0432\u0430\u0442\u044c \u0447\u0438\u0441\u043b\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432 \u0440\u0430\u043d\u0442\u0430\u0439\u043c\u0435 \u0431\u0435\u0437 \u043f\u043e\u0442\u0435\u0440\u044c:<\/a><\/p>\n<pre><code class=\"go\">package main  import &quot;fmt&quot;  const (     \/\/ Create a huge number by shifting a 1 bit left 100 places.     \/\/ In other words, the binary number that is 1 followed by 100 zeroes.     Big = 1 &lt;&lt; 100     \/\/ Shift it right again 99 places, so we end up with 1&lt;&lt;1, or 2.     Small = Big &gt;&gt; 99 )  func needInt(x int) int { return x*10 + 1 } func needFloat(x float64) float64 {     return x * 0.1 }  func main() {     fmt.Println(needInt(Small)) \/\/ 21     fmt.Println(needInt(Big)) \/\/ constant 1267650600228229401496703205376 overflows int     fmt.Println(needFloat(Small)) \/\/ 0.2     fmt.Println(needFloat(Big)) \/\/ 1.2676506002282295e+29 }<\/code><\/pre>\n<p>  <a href=\"http:\/\/dpaste.dzfl.pl\/e6bec95a3438\">\u0412 D \u043f\u0440\u0438 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0442\u0435 \u0436\u0435 \u0442\u0438\u043f\u044b, \u0447\u0442\u043e \u0438 \u043f\u0440\u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0438, \u0442\u0430\u043a \u0447\u0442\u043e \u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442 \u0438\u043c\u0435\u044e\u0442 \u0442\u0435 \u0436\u0435 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f:<\/a><\/p>\n<pre><code>module main;  import std.stdio;  enum Big = 1L &lt;&lt; 100; \/\/ Error: shift by 100 is outside the range 0..63 enum Small = Big &gt;&gt; 99;<\/code><\/pre>\n<div class=\"polling\">\n<form action=\"\/json\/polling\/\" class=\"poll\" method=\"post\">\n<div class=\"poll_title\">\u041a\u0430\u043a\u0443\u044e \u0447\u0430\u0441\u0442\u044c \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0438\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439?<\/div>\n<p>  \t\t<input type=\"hidden\" name=\"post_id\" value=\"279657\"\/> \t\t<input type=\"hidden\" name=\"polling_question_id\" value=\"14747\"\/>  \t\t<\/p>\n<table class=\"answer\">\n<tr>\n<td class=\"input\"> \t\t\t\t\t<input type=\"checkbox\" id=\"vv72017\" \t\t\t\t\t\tclass=\"checkbox js-field-data\" \t\t\t\t\t\tname=\"variant[]\" \t\t\t\t\t\tvalue=\"72017\" \/> \t\t\t\t<\/td>\n<td class=\"label\"> \t\t\t\t\t<label for=\"vv72017\">\u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u043e\u0442\u043e\u043a\u043e\u043c<\/label> \t\t\t\t<\/td>\n<\/tr>\n<tr>\n<td class=\"input\"> \t\t\t\t\t<input type=\"checkbox\" id=\"vv72019\" \t\t\t\t\t\tclass=\"checkbox js-field-data\" \t\t\t\t\t\tname=\"variant[]\" \t\t\t\t\t\tvalue=\"72019\" \/> \t\t\t\t<\/td>\n<td class=\"label\"> \t\t\t\t\t<label for=\"vv72019\">\u041a\u043e\u043c\u043f\u043b\u0435\u043a\u0441\u043d\u044b\u0435 \u0442\u0438\u043f\u044b<\/label> \t\t\t\t<\/td>\n<\/tr>\n<tr>\n<td class=\"input\"> \t\t\t\t\t<input type=\"checkbox\" id=\"vv72021\" \t\t\t\t\t\tclass=\"checkbox js-field-data\" \t\t\t\t\t\tname=\"variant[]\" \t\t\t\t\t\tvalue=\"72021\" \/> \t\t\t\t<\/td>\n<td class=\"label\"> \t\t\t\t\t<label for=\"vv72021\">\u041c\u0435\u0442\u043e\u0434\u044b<\/label> \t\t\t\t<\/td>\n<\/tr>\n<tr>\n<td class=\"input\"> \t\t\t\t\t<input type=\"checkbox\" id=\"vv72023\" \t\t\t\t\t\tclass=\"checkbox js-field-data\" \t\t\t\t\t\tname=\"variant[]\" \t\t\t\t\t\tvalue=\"72023\" \/> \t\t\t\t<\/td>\n<td class=\"label\"> \t\t\t\t\t<label for=\"vv72023\">\u0421\u043e\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b<\/label> \t\t\t\t<\/td>\n<\/tr>\n<\/table>\n<p class=\"total\">\u041d\u0438\u043a\u0442\u043e \u0435\u0449\u0451 \u043d\u0435 \u0433\u043e\u043b\u043e\u0441\u043e\u0432\u0430\u043b. \u0412\u043e\u0437\u0434\u0435\u0440\u0436\u0430\u0432\u0448\u0438\u0445\u0441\u044f \u043d\u0435\u0442.<\/p>\n<\/p><\/form>\n<form action=\"\/json\/polling\/\" class=\"poll\" method=\"post\">\n<div class=\"poll_title\">\u041d\u0443 \u0447\u0442\u043e, \u043d\u0430 \u043a\u0430\u043a\u043e\u0439 \u043f\u0440\u0438\u043a\u043b\u0430\u0434\u043d\u043e\u0439 \u044f\u0437\u044b\u043a \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c?<\/div>\n<p>  \t\t<input type=\"hidden\" name=\"post_id\" value=\"279657\"\/> \t\t<input type=\"hidden\" name=\"polling_question_id\" value=\"14749\"\/>  \t\t<\/p>\n<table class=\"answer\">\n<tr>\n<td class=\"input\"> \t\t\t\t\t<input type=\"radio\" id=\"vv72025\" \t\t\t\t\t\tclass=\"radio js-field-data\" \t\t\t\t\t\tname=\"variant[]\" \t\t\t\t\t\tvalue=\"72025\" \/> \t\t\t\t<\/td>\n<td class=\"label\"> \t\t\t\t\t<label for=\"vv72025\">C<\/label> \t\t\t\t<\/td>\n<\/tr>\n<tr>\n<td class=\"input\"> \t\t\t\t\t<input type=\"radio\" id=\"vv72027\" \t\t\t\t\t\tclass=\"radio js-field-data\" \t\t\t\t\t\tname=\"variant[]\" \t\t\t\t\t\tvalue=\"72027\" \/> \t\t\t\t<\/td>\n<td class=\"label\"> \t\t\t\t\t<label for=\"vv72027\">C++<\/label> \t\t\t\t<\/td>\n<\/tr>\n<tr>\n<td class=\"input\"> \t\t\t\t\t<input type=\"radio\" id=\"vv72029\" \t\t\t\t\t\tclass=\"radio js-field-data\" \t\t\t\t\t\tname=\"variant[]\" \t\t\t\t\t\tvalue=\"72029\" \/> \t\t\t\t<\/td>\n<td class=\"label\"> \t\t\t\t\t<label for=\"vv72029\">D<\/label> \t\t\t\t<\/td>\n<\/tr>\n<tr>\n<td class=\"input\"> \t\t\t\t\t<input type=\"radio\" id=\"vv72031\" \t\t\t\t\t\tclass=\"radio js-field-data\" \t\t\t\t\t\tname=\"variant[]\" \t\t\t\t\t\tvalue=\"72031\" \/> \t\t\t\t<\/td>\n<td class=\"label\"> \t\t\t\t\t<label for=\"vv72031\">Go<\/label> \t\t\t\t<\/td>\n<\/tr>\n<tr>\n<td class=\"input\"> \t\t\t\t\t<input type=\"radio\" id=\"vv72033\" \t\t\t\t\t\tclass=\"radio js-field-data\" \t\t\t\t\t\tname=\"variant[]\" \t\t\t\t\t\tvalue=\"72033\" \/> \t\t\t\t<\/td>\n<td class=\"label\"> \t\t\t\t\t<label for=\"vv72033\">Rust<\/label> \t\t\t\t<\/td>\n<\/tr>\n<\/table>\n<p class=\"total\">\u041d\u0438\u043a\u0442\u043e \u0435\u0449\u0451 \u043d\u0435 \u0433\u043e\u043b\u043e\u0441\u043e\u0432\u0430\u043b. \u0412\u043e\u0437\u0434\u0435\u0440\u0436\u0430\u0432\u0448\u0438\u0445\u0441\u044f \u043d\u0435\u0442.<\/p>\n<\/p><\/form>\n<p class=\"for_users_only_msg\">\u0422\u043e\u043b\u044c\u043a\u043e \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u043c\u043e\u0433\u0443\u0442 \u0443\u0447\u0430\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0432 \u043e\u043f\u0440\u043e\u0441\u0435. <a href=\"https:\/\/habrahabr.ru\/auth\/login\/\">\u0412\u043e\u0439\u0434\u0438\u0442\u0435<\/a>, \u043f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430.<\/p>\n<\/p><\/div>\n<div class=\"clear\"><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habrahabr.ru\/post\/279657\/\"> https:\/\/habrahabr.ru\/post\/279657\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>       \u0415\u0441\u043b\u0438 \u0432\u044b \u0443\u0436\u0435 \u043d\u0430\u0438\u0433\u0440\u0430\u043b\u0438\u0441\u044c \u0441 Go, \u0443\u0441\u0442\u0430\u043b\u0438 \u043e\u0442 \u043a\u043e\u043f\u0438\u043f\u0430\u0441\u0442\u044b, \u0440\u0443\u0447\u043d\u043e\u0433\u043e \u0436\u043e\u043d\u0433\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0442\u0438\u043f\u0430\u043c\u0438 \u0438 \u043f\u043e\u0434\u0443\u043c\u044b\u0432\u0430\u0435\u0442\u0435 \u0432\u0435\u0440\u043d\u0443\u0442\u044c\u0441\u044f \u043d\u0430 \u043a\u0430\u043a\u043e\u0439-\u043d\u0438\u0431\u0443\u0434\u044c Python \u0438\u043b\u0438, \u043f\u0440\u043e\u0441\u0442\u0438 \u0433\u043e\u0441\u043f\u043e\u0434\u0438, PHP, \u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044c\u0442\u0435 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0438\u0442\u044c \u0432\u0430\u043c \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u044f\u0437\u044b\u043a D, \u0433\u0434\u0435 \u0442\u0438\u043f\u0438\u0437\u0430\u0446\u0438\u044f \u0445\u043e\u0442\u044c \u0438 \u0442\u043e\u0436\u0435 \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0430\u044f, \u043d\u043e \u043e\u043d\u0430 \u043d\u0435 \u043f\u0443\u0442\u0430\u0435\u0442\u0441\u044f \u043f\u043e\u0434 \u043d\u043e\u0433\u0430\u043c\u0438 \u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u0438\u0441\u0430\u0442\u044c \u043d\u0435 \u043c\u0435\u043d\u0435\u0435 \u0432\u044b\u0440\u0430\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043a\u043e\u0434, \u0447\u0435\u043c \u043d\u0430 \u044f\u0437\u044b\u043a\u0430\u0445 \u0441 \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0442\u0438\u043f\u0438\u0437\u0430\u0446\u0438\u0435\u0439. \u0410 \u0447\u0442\u043e\u0431\u044b \u043f\u0435\u0440\u0435\u0445\u043e\u0434 \u0431\u044b\u043b \u043d\u0435 \u0442\u0430\u043a\u043e\u0439 \u0431\u043e\u043b\u0435\u0437\u043d\u0435\u043d\u043d\u044b\u0439, \u0432\u0430\u0448\u0435\u043c\u0443 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u044e \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442\u0441\u044f \u043f\u0435\u0440\u0435\u0432\u043e\u0434 <a href=\"https:\/\/tour.golang.org\/list\">Tour of the Go<\/a> c \u044d\u043a\u0432\u0438\u0432\u0430\u043b\u0435\u043d\u0442\u043d\u044b\u043c \u043a\u043e\u0434\u043e\u043c \u043d\u0430 <a href=\"http:\/\/dlang.org\/\">D<\/a> \u0438 \u043a\u0440\u0430\u0442\u043a\u0438\u043c\u0438 \u043f\u043e\u044f\u0441\u043d\u0435\u043d\u0438\u044f\u043c\u0438.<\/p>\n<h1>\u0427\u0430\u0441\u0442\u044c \u043f\u0435\u0440\u0432\u0430\u044f. \u041e\u0441\u043d\u043e\u0432\u044b.<\/h1>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-276508","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/276508","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=276508"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/276508\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=276508"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=276508"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=276508"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}