1BEGIN { 2 print("package " pkgname) 3 print("") 4 object=0 5} 6 7/\/\/ \+kubebuilder:object:root=true/ { 8 object=1 9} 10 11/^type \S+ struct/ && object { 12 if (!match($2, /List$/)) { 13 print "func(*" $2 ") Hub() {}" 14 } 15 object=0 16}
View as plain text