You’re not forced to use the "imperative verbosity" in the article. The following is shorter and more idiomatic.
serializeType := model.SerializeNonArchivedOnly
if showArchived {
serializeType = model.SerializeAll
}