code: func generateAlias(ctx *context, w io.Writer, alias *Alias) {
  	name := camelCaseName(alias.Name)
  
  	logf(" writing type %q (%s), length: %d", alias.Name, name, alias.Length)
  
  	// generate struct comment
  	generateComment(ctx, w, name, alias.Name, "alias")
  
  	// generate struct definition
  	fmt.Fprintf(w, "type %s ", name)
  
  	if alias.Length > 0 {
  		fmt.Fprintf(w, "[%d]", alias.Length)
  	}
  
  	dataType := convertToGoType(ctx, alias.Type)
  	fmt.Fprintf(w, "%s\n", dataType)
  
  	fmt.Fprintln(w)
  }
docs: // generateAlias writes generated code for the alias into w