一品网
  • 首页

go 基础switch


switch

arr1 := []string{"hello","world2"}
switch arr1[1] {
case "hello":
	fmt.Println("hello")
case "world":
	fmt.Println("world")
default:
	fmt.Println("default")
}
go基础

相关


Django基础

Django基础篇

GO基础-数据类型

37_Go基础_1_4 iota

51_Go基础_1_18 切片的扩容

web框架--django基础简介

45_Go基础_1_12 arr-1

62_Go基础_1_29 函数中切片数组参数的区别

60_Go基础_1_27 字符串常用方法

Go基础笔记(一) defer详解

Go基础知识梳理(二)

go基础知识一

标签

一品网 冀ICP备14022925号-6