Go Programming Language - Learning The Go Lang way

  • Published on
    06-Apr-2017

  • View
    371

  • Download
    2

Transcript

  • The Go WayNavneet KarnaniMandrake Technologies

    *

  • PrerequisitesAudience is smart and understands programmingAbility to use GoogleAudience is looking for takeaways to be things not found on blogs

    *Rune maps to a Unicode character

  • ScopeTalk about the behaviorLook at and discuss codeKeep use cases simple to keep focusCover the basics to enable building on the knowledgePromo: Talk on Web App development using Go later in the Conference

    *Rune maps to a Unicode character

  • What is the charter of GoGo is an open source programming language that makes it easy to build simple, reliable, and efficient software.

    *

  • Hello world

    *

  • FindingsNo semicolonsName spacemain

    *Rune maps to a Unicode character

  • MultiplyWrite an application to print multiplication tables

    Hands On

    *

  • STEP 1 compute and print

    *

  • FindingsNo type declarations

    *Rune maps to a Unicode character

  • STEP 2 use arrays

    *

  • FindingsArrays are data types with a specified type and size

    *Rune maps to a Unicode character

  • STEP 3 use slices

    *

  • FindingsViews into the array

    *Rune maps to a Unicode character

  • STEP 4 test

    *

  • FindingsTest infrastructure built inBuilding blocks work with Example and Standard ConditionalsBenchmarking

    *Rune maps to a Unicode character

  • STEP 5 concurrency

    *

  • FindingsSpawning tasks is a first class citizenUses OS concept of channels for data exchange

    *Rune maps to a Unicode character

  • STEP 6 MAP, References and memory

    *

  • FindingsGo treatment of Local variables differs from other languages Memory allocation uses the make methodThere is no delete needed

    *Rune maps to a Unicode character

  • STEP 6 Struct

    *

  • FindingsStructs are memory structures with optional associated functions and methods

    *Rune maps to a Unicode character

  • STEP 7 inteRface

    *

  • FindingsDuck Typing

    *Rune maps to a Unicode character

  • CompletenessSmart suggestions / errorsCode formattingDependency managementBuild ToolTesting frameworkPerformance measurement

    *Unused variables are errorsgofmt and goimport Go get

  • https://github.com/navneetkarnani/Presentation-TheGoWayCode

  • Thank You

    Navneet Karnaninavneet@mandraketech.in@maakhansingh

    *

    *

    *Rune maps to a Unicode character

    *Rune maps to a Unicode character

    *

    *

    *Rune maps to a Unicode character

    *

    *

    *Rune maps to a Unicode character

    *

    *Rune maps to a Unicode character

    *

    *Rune maps to a Unicode character

    *

    *Rune maps to a Unicode character

    *

    *Rune maps to a Unicode character

    *

    *Rune maps to a Unicode character

    *

    *Rune maps to a Unicode character

    *

    *Rune maps to a Unicode character

    *Unused variables are errorsgofmt and goimport Go get

    *

Recommended

View more >