<\/span><\/h1>\n\n\n\npackage main\n\nimport \"fmt\"\n\nfunc main() {\n\ttype myBool bool\n\n\t\/\/Typed Boolean constant\n\tconst aa bool = true\n\tvar uu = aa\n\tfmt.Println(\"Typed named boolean constant\")\n\tfmt.Printf(\"uu: Type: %T Value: %v\\n\\n\", uu, uu)\n\n\t\/\/Below line will raise a compilation error\n\t\/\/var vv myBool = aa\n\n\t\/\/Untyped named boolean constant\n\tconst bb = true\n\n\tvar ww myBool = bb\n\tvar xx = bb\n\tfmt.Println(\"Untyped named boolean constant\")\n\tfmt.Printf(\"ww: Type: %T Value: %v\\n\", ww, ww)\n\tfmt.Printf(\"xx: Type: %T Value: %v\\n\\n\", xx, xx)\n\n\t\/\/Untyped unnamed boolean constant\n\tvar yy myBool = true\n\tvar zz = true\n\tfmt.Println(\"Untyped unnamed boolean constant\")\n\tfmt.Printf(\"yy: Type: %T Value: %v\\n\", yy, yy)\n\tfmt.Printf(\"zz: Type: %T Value: %v\\n\", zz, zz)\n}<\/code><\/pre>\n\n\n\nOutput:<\/strong><\/p>\n\n\n\nTyped named boolean constant\nuu: Type: bool Value: true\n\nUntyped named boolean constant\nww: Type: main.myBool Value: true\nxx: Type: bool Value: true\n\nUntyped unnamed boolean constant\nyy: Type: main.myBool Value: true\nzz: Type: bool Value: true<\/code><\/pre>\n\n\n\nIn the above program, we created a new type myBool<\/strong><\/p>\n\n\n\ntype myBool bool<\/code><\/pre>\n\n\n\nAlso above program shows the example of<\/p>\n\n\n\n