So I want to create my own wrapper library from already existing lib A. Library A has some functions and also some constants, example:
package lib
const(
HeaderA = "headerA"
HeaderB = "headerB"
)
func doWork(string header) {
// some work
}
Now the question is: Do I have to reassign these constants in my own library ?
package mylib
const (
myHeaderA = lib.HeaderA
myHeaderB = lib.HeaderB
)
What is the best practice in this case ? It seems ok to reassign them in order to make the user unaware of lib A, but what if this library has a ton of constants ?
Thank you