'How do I do table locking in GORM(Golang)?

How do I do table locking in GORM(go-gorm)?

I found a way to do row locking, but could not find a way to do table locking.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source