Repository navigation
This is the initial release of the stack package, a generic and concurrent-safe LIFO (Last In, First Out) stack implementation in Go. The package allows users to work with stacks of any type (using Go generics) while ensuring thread-safety with synchronization mechanisms.
Features:
Generics Support: The stack works with any data type, providing type safety and flexibility.
Concurrency-Safe: The stack is safe for concurrent use by multiple goroutines, utilizing sync.Mutex for exclusive locks.
Resizable: The stack automatically resizes as elements are added or removed.
Simple API: The package provides an easy-to-use and intuitive API for stack operations.