golang-api-with-react

command module
v0.0.0-...-3f00e81 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 25, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

README

golang-api-with-react

Pointers and Memory Allocation






package main
import "fmt"

func main() {
    var x int = 5 
    
    fmt.Println("x | address:",  &x)
    fmt.Println("x | value:", x)
    
	var p *int = &x 

	fmt.Println("p | address:", &p)
	fmt.Println("p | address -> x:", p)
    fmt.Println("p | value: -> x:",  *p)
}

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL