• Daniel Martí's avatar
    all: rename schema.Kind to TypeKind, ipld.ReprKind to Kind · 2d7d25c4
    Daniel Martí authored
    As discussed on the issue thread, ipld.Kind and schema.TypeKind are more
    intuitive, closer to the spec wording, and just generally better in the
    long run.
    
    The changes are almost entirely automated via the commands below. Very
    minor changes were needed in some of the generators, and then gofmt.
    
    	sed -ri 's/\<Kind\(\)/TypeKind()/g' **/*.go
    	git checkout fluent # since it uses reflect.Value.Kind
    
    	sed -ri 's/\<Kind_/TypeKind_/g' **/*.go
    	sed -i 's/\<Kind\>/TypeKind/g' **/*.go
    	sed -i 's/ReprKind/Kind/g' **/*.go
    
    Plus manually undoing a few renames, as per Eric's review.
    
    Fixes #94.
    2d7d25c4
nodeStyle.go 5.23 KB