How do I write inline documentation for methods and variables in Go code? -


Are there some rules for documenting the methods and variables in the Geo language?

For example, PHP

  / ** This method will increase the parameter $ B in 10 digits @ wind int $ B / return intra / public function in some mode ($ B) {Return $ B + 10; }   

Is there something like that, or should I use the "// comment" method without any @var or @reurn on there?

You should use standard // comments because this is what is called the official document tool called Godock. Code will be used for making documents. You can see this post from official Gol Blog:

I find this recent article interesting:

Comments

Popular posts from this blog

c# - passing input text from view to contoller with FacebookContext using Facebook app -

ios - Does Core Data autoupdate a many to many relationship on saving -

Calling a C++ function from C# by passing a string with variable size to it -