easy go with gooftalk

10
Easy GO with GoofTalk By Manjuprasad Shetty Vishwas Navada

Upload: manjuprasad-shetty-n

Post on 14-Feb-2017

96 views

Category:

Software


0 download

TRANSCRIPT

Easy GO with GoofTalk

ByManjuprasad ShettyVishwas Navada

Easy GO with GoofTalk 2

What is Goof Talk ?

NOSCONF - 2016

Easy GO with GoofTalk 3

What is RPC ?

NOSCONF - 2016

Easy GO with GoofTalk 4

Features in Goof Talk• Whisper

• Shout

• List Goofs

• Clear chat screen

NOSCONF - 2016

What as programmers we don’t like ?

• Comments (writing)

• Unit testing

• Documentation

NOSCONF - 2016 Easy GO with GoofTalk 5

Easy GO with GoofTalk 6

Unit Testing• The “testing” package

GO offers its own package that allows programmers to create unit test cases

• Test functions in your package by using,$ go test <package_name>

NOSCONF - 2016

Errors in GO• Most of the built in functions return an error

variable along with expected return valuesf, err := os.Open("filename.ext")

• For user defined functions, you can create your own errors and return them

return yourval, errors.New(“Your error")

NOSCONF - 2016 Easy GO with GoofTalk 7

Easy GO with GoofTalk 8

Documentations with Godoc• Godoc command function fetches comments

written before each function in a package$ godoc <package_name> [function_name]

• Generate html documentation pages with –html option

$ godoc –html <package_name> > doc.html

NOSCONF - 2016

Easy GO with GoofTalk 9

Things we loved about GO• Easy to learn

• Lots of built-in functions

• Variable Declarations

• Enforces Coding Standards

NOSCONF - 2016

Thank You!Manjuprasad Shetty N [email protected]

linkedin.com/in/manjumpsngithub.com/

manjuprasadsn

Vishwas Navada K

[email protected]

mlinkedin.com/in/vishwasnavadak

github.com/vishwasnavadak

Fork us on github.com/GOOFS/go-goof-talk