ÏÈÈÝGoÓïÑÔµÄÉè¼ÆÓëʵÏÖ¼°Github¿ªÔ´ÏîÄ¿
goÓïÑÔÉè¼ÆÓëʵÏÖgithub
½üÄêÀ´£¬Ëæ×ÅWebÓ¦ÓõĿìËÙÉú³¤ºÍÔÆÅÌËãµÄÆÕ±éÓ¦Óã¬GoÓïÑÔÒѳÉΪÖڶ࿪·¢ÕßµÄÊ×Ñ¡¡£×÷Ϊһ޲̬ÀàÐͱà³ÌÓïÑÔ£¬GoÓïÑÔÔÚ±àÒëËÙÂÊ¡¢²¢·¢ÄÜÁ¦¡¢´úÂë¿É¶ÁÐԵȷ½ÃæÓÅÊÆÏÔ×Å£¬Òò´Ë±¸ÊܹØ×¢¡£±¾ÎĽ«ÏÈÈÝGoÓïÑÔµÄÉè¼ÆÓëʵÏÖ£¬ÒÔ¼°Ïà¹ØµÄGithub¿ªÔ´ÏîÄ¿¡£
Ò»¡¢GoÓïÑÔµÄÉè¼ÆÍ·ÄÔºÍÌصã
GoÓïÑÔµÄÉè¼Æ×ÚÖ¼ÊÇ¡°ÔÚ¾²Ì¬ÓïÑÔµÄÇå¾²ºÍÐÔÄÜÖ®¼äÈ¡µÃƽºâ¡±¡£ÎªÁËʵÏÖÕâÒ»×ÚÖ¼£¬GoÓïÑÔÔÚÓïÑÔÉè¼ÆÉÏÓÐÒÔÏÂÌص㣺
¾«Á·Ò×ѧ
GoÓïÑÔ½ÓÄɾ«Á·µÄÓï·¨£¬×èÖ¹ÁËÐí¶àÆäËû¾²Ì¬ÓïÑÔÖеÄÈßÓ࣬ͬʱҲ¾ß±¸Á˽ϸߵĿɶÁÐÔºÍÒ×ѧÐÔ¡£
²¢·¢ÄÜÁ¦Ç¿
GoÓïÑÔÖеÄGoroutineºÍChannelʹµÃ²¢·¢±à³Ì±äµÃÔ½·¢Ò×ÓÚʵÏֺͿØÖÆ£¬Õâ´ó´óÌá¸ßÁËWebÓ¦ÓóÌÐòµÄЧÂÊ¡£
¾²Ì¬ÀàÐͼì²é
GoÓïÑԾ߱¸Ç¿¾²Ì¬ÀàÐͼì²éµÄÌص㣬×ÊÖú¿ª·¢Õ߸ü¿ìµØ·¢Ã÷±àÒë¹ýʧ£¬×î´óÏ޶ȵØïÔÌÔËÐÐʱ¹ýʧ¡£
±àÒëËÙÂÊ¿ì
GoÓïÑԵıàÒëËÙÂʷdz£¿ì£¬ÇáËÉ´¦Àí½ÏÖØ´óµÄ³ÌÐòºÍ´ó¹æÄ£ÏîÄ¿£¬°ü¹ÜÁËWebÓ¦Óôӽ¨Éèµ½ÉÏÏßµÄËÙÂʺÍÖÊÁ¿¡£
¶þ¡¢GoÓïÑÔµÄʵÏÖÔÀí
GoÓïÑÔµÄʵÏÖÓжàÖÖ£¬ÆäÖаüÀ¨GoµÄ¹Ù·½ÊµÏÖ¡¢gccgoºÍllgo¡£GoÓïÑԵĹٷ½ÊµÏÖÊÇÓÉGoogle¿ª·¢µÄ¡£ËüÓÐ×Ô¼ºµÄ±àÒëÆ÷¡¢ÔËÐÐʱÇéÐκͱê×¼¿â¡£ÔÚ±àÒëÀú³ÌÖУ¬Go»áÏȽ«Ô´´úÂë·Òë³ÉÁýͳÓï·¨Ê÷£¨AST£©£¬È»ºóÓÅ»¯´úÂë²¢½«Æä±àÒë³É»úе´úÂë¡£
ÔÚÔËÐÐʱÇéÐÎÖУ¬Ã¿¸öGoroutine¶¼ÓÐ×Ô¼ºµÄÕ»¡£µ±Ò»¸öGoroutineÐèÒªÖ´ÐÐʱ£¬Ëü»á´ÓÕ»ÖжÁÈ¡Ö¸Áî²¢½«ÆäÌí¼Óµ½Ö¸ÁîÐÐÁÐÖС£ÔËÐÐʱÇéÐλáÈÏÕæµ÷ÀíGoroutine£¬ÒÔʵÏÖ²¢·¢Ö´ÐС£
Á¬Ã¦Ñ§Ï°¡°goÓïÑÔÃâ·ÑѧϰÌõ¼Ç£¨ÉîÈ룩¡±£»
ÖµµÃ×¢ÖصÄÊÇ£¬ºÍÆäËû¾²Ì¬ÓïÑԵıàÒëÆ÷²î±ð£¬GoÓïÑԵıàÒëÆ÷ÓµÓÐ×Ô¼ºµÄÀ¬»ø½ÓÄÉ»úÖÆ£¬ÕâʹµÃGoÓïÑÔÕæÕý×öµ½ÁËÎÞÐ迪·¢Õ߸ÉÔ¤µÄÄÚ´æÖÎÀí¡£
Èý¡¢GoÓïÑԵĿªÔ´ÏîÄ¿
GoÓïÑÔ×÷ΪһÃÅ¿ªÔ´±à³ÌÓïÑÔ£¬ÓµÓи»ºñµÄGithubÏîÄ¿¡£ÒÔÏÂÊÇһЩ½ÏΪÖøÃûµÄÏîÄ¿£º
Docker£ºÊ¹ÓÃGoÓïÑÔ±àдµÄÈÝÆ÷ÊÖÒÕ£¬ÎªWebÓ¦Óð²ÅÅÌṩÁËÔ½·¢ÎÞаµÄ½â¾ö¼Æ»®¡£
Kubernetes£ºÊ¹ÓÃGoÓïÑÔ±àдµÄÈÝÆ÷±àÅÅϵͳ£¬ÊÇÒ»¸öÖ§³Ö¶à½ÚµãµÄÂþÑÜʽϵͳ¡£
Hugo£ºÊ¹ÓÃGoÓïÑÔ±àдµÄ¾²Ì¬ÍøÕ¾ÌìÉúÆ÷£¬¿ÉÓÃÀ´ÌìÉú¾²Ì¬µÄ²©¿Í¡¢ÎĵµµÈÍøÕ¾¡£
CockroachDB£ºÊ¹ÓÃGoÓïÑÔ±àдµÄÂþÑÜʽÊý¾Ý¿â¡£
ÐèҪעÖصÄÊÇ£¬ÓÉÓÚGoÓïÑԵĿìËÙÉú³¤ºÍÆÕ±éÓ¦Óã¬GithubÉϵÄGoÏîÄ¿ÊýÄ¿Ò²»áÒ»Ö±ÔöÌí£¬GoÓïÑÔµÄʹÓÃÁìÓòÒ²»áÒ»Ö±À©Õ¹¡£
×ÜÖ®£¬GoÓïÑÔÊÇÒ»ÃÅÖÜÈ«ÇÒ¿ª·ÅµÄ±à³ÌÓïÑÔ£¬¾ßÓнÏÇ¿µÄ²¢·¢ÐԺ͸ßЧÐÔÄÜ¡£Í¨¹ý±¾ÎĵÄÏÈÈÝ£¬ÎÒÃÇ¿ÉÒÔ¸üºÃµØÏàʶGoÓïÑÔµÄÉè¼ÆºÍʵÏÖ£¬ÒÔ¼°Ò»Ð©Ïà¹ØµÄ¿ªÔ´ÏîÄ¿¡£Î´À´£¬GoÓïÑÔÔÚÔÆÅÌËã¡¢WebÓ¦ÓõÈÁìÓòµÄÓ¦Óý«»áÔ½·¢Æձ飬´øÀ´¸ü¶àµÄ±ãµ±ºÍЧÒæ¡£
ÒÔÉϾÍÊÇÏÈÈÝGoÓïÑÔµÄÉè¼ÆÓëʵÏÖ¼°Github¿ªÔ´ÏîÄ¿µÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡