package main

import "core:fmt"
import "core:strings"

main :: proc() {
    // Test string building
    builder: strings.Builder
    strings.builder_init(&builder, context.temp_allocator)
    
    // Test 1: Using fmt.sbprintf
    fmt.sbprintf(&builder, "{}", 123)
    fmt.sbprintf(&builder, "{:09}", 456)
    
    result := strings.to_string(builder)
    fmt.println("Result:", result)
    
    // Test 2: Using append to dynamic array
    bytes: [dynamic]u8
    append(&bytes, 51)  // 3
    append(&bytes, 46)  // .
    append(&bytes, 49)  // 1
    append(&bytes, 52)  // 4
    
    str := string(bytes[:])
    fmt.println("String from bytes:", str)
}
