Skip to content

page 57 sample codes can not pass compile. #25

@hobbytp

Description

@hobbytp

In my compiler, the following Enone/Einvalid are marked as RED, and cannot pass compile. I think the arr and sl shall not include them, and in map they shall be string? or you want to show other thing here?

arr := [...]string{Enone: "no error", Einvalid:"invalid argument"}
sl :=[]string{Enone: "no error", Einvalid:"invalid argument"}
ma :=map[int]string{Enone: "no error", Einvalid:"invalid argument"}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions