As illustrated in the code example, the Walk API is split in to two notable packages: github.com/lxn/walk and github.com/lxn/walk/declarative. The declarative API is the preferred approach for developing application GUIs using Walk, as it offers a better abstraction to work with and is more idiomatic. The implementation of the declarative API also provides various standard metrics and default values that help to create a standard user interface with minimal code. The package is typically imported using the . prefix, so that GUI code can avoid repeatedly using the declarative. prefix.
Benefits of a declarative API
Compared with the native API
Using the native API, (Go bindings of the native winAPI) is possible, but...