Go - New

Card Puncher Data Processing

About

The expression new(T):

new is a predeclared function, not a keyword,

Example

p := new(int) 
fmt.Println(*p) // "0" 

then:

  • p has the type *int, points to an unnamed int variable

Documentation / Reference





Discover More
Card Puncher Data Processing
Go - Name

in Go. “camel case”. Example: QuoteRuneToASCII and parseRequestLine but never quote_rune_to_ASCII or parse_request_line. The letters of acronyms and initialisms like ASCII and HTML are...



Share this page:
Follow us:
Task Runner