Answers for "go type"

Go
2

variable types golang

// Go's basic types are :

bool

string

int  int8  int16  int32  int64
uint uint8 uint16 uint32 uint64 uintptr

byte // alias for uint8

rune // alias for int32
     // represents a Unicode code point

float32 float64

complex64 complex128
Posted by: Guest on September-13-2020
0

golang type

package main

import (
	"fmt"
)

type (
	Name string
	Age  uint
)
func main() {
  var name Name
  var age Age
  name = "john doe"
  age = 30
  fmt.Printf("nama saya %s dan umur saya %d", name, age)
}
Posted by: Guest on October-02-2021
0

type golang

type Person struct {
	name string
	age int
	city,phone string
}
Posted by: Guest on August-07-2021

Browse Popular Code Answers by Language