英文:
Manually edit boltdb file
问题
我有一个用golang编写的应用程序,我想创建一个内置数据库,我选择了boltdb。我有一些初始数据,我想手动将其种入数据库中。我有一个名为database.db的文件,我想往里面添加一些数据。
当我打开这个文件时,我看到很多'NUL'字样。我该如何手动编辑.db文件?
英文:
I have an app written on golang and I want to create a builin database, I've selected boltdb. I have some init data that I want to seed into database manually. I have database.db file and I want to put some data into it.
When I open this file - I see many 'NUL' words. How can I edit .db file manually?
答案1
得分: 0
你不能手动编辑它,你必须编写代码来自动完成这个任务。
英文:
You can't edit it manually, you have to write code code that'd do that for you.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论