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

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -