11.basic-types

command
v0.0.0-...-eb6f777 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

*

  • go的基本类型有
  • bool
  • string
  • int int8 int16 int32 int64
  • uint uint8 uint16 uint32 uint64 uintptr
  • byte = uint8
  • rune = int32
  • float32 float64
  • complex64 complex128 *
  • 除非有特殊的理由, 否则需要整型的数据的时候用int, go会在32位或者64位的计算机上自动识别是int32 还是int64

Jump to

Keyboard shortcuts

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