switch分支2

This commit is contained in:
2025-11-07 21:06:49 +08:00
parent 4312688305
commit 1b880afc2b
3 changed files with 4 additions and 2 deletions

2
.idea/modules.xml generated
View File

@@ -2,7 +2,7 @@
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/awesomeProject.iml" filepath="$PROJECT_DIR$/.idea/awesomeProject.iml" />
<module fileurl="file://$PROJECT_DIR$/.idea/GoCode.iml" filepath="$PROJECT_DIR$/.idea/GoCode.iml" />
</modules>
</component>
</project>

2
.idea/vcs.xml generated
View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
<mapping directory="" vcs="Git" />
</component>
</project>

View File

@@ -11,6 +11,8 @@ func main() {
fmt.Println("You are 9%")
case 8:
fmt.Println("You are 8%")
//switch传透下一层
fallthrough
case 7:
fmt.Println("You are 7%")
case 6: