Skip to content

For some code content, you need to adjust the format of the processing #8

Description

@DerickIT

原文:
image
https://victoriametrics.com/blog/go-map/?ref=dailydev

下载下来的格式


    func main() {
    	a := map[string]int{"a": 1, "b": 2, "c": 3, "d": 4, "e": 5, "f": 6}
    	b := map[string]int{"a": 1, "b": 2, "c": 3, "d": 4, "e": 5, "f": 6}
    
    	for i := range a {
    		print(i, " ")
    	}
    	println()
    
    	for i := range b {
    		print(i, " ")
    	}
    }
    
    // Output:
    // a b c d e f
    // c d e f a b

Go

Copy

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