{"id":67930,"library":"getlantern-deepcopy","title":"Deep Copy","description":"Package deepcopy provides functionality for making deep copies of objects using JSON marshal/unmarshal.","status":"active","version":"0.0.0-20160317154340-7f45deb8130a","language":"go","source_language":null,"source_url":"https://github.com/getlantern/deepcopy","tags":["deepcopy","utility","json","copy"],"install":[{"cmd":"go get github.com/getlantern/deepcopy","lang":"bash","label":"Install github.com/getlantern/deepcopy"}],"dependencies":[],"imports":[{"symbol":"deepcopy","correct":"github.com/getlantern/deepcopy"}],"quickstart":{"code":"import \"github.com/getlantern/deepcopy\"\n\nfunc main() {\n    src := map[string]int{\"a\": 1}\n    var dst map[string]int\n    deepcopy.Copy(&dst, &src)\n}","lang":"go","description":"Deep copy a map using JSON serialization"},"warnings":[{"fix":"Ensure the object is JSON-serializable or use a more robust deep copy library.","message":"Uses JSON marshal/unmarshal, which may not handle all types (e.g., channels, functions).","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'copi':2,10,19 'deep':1,9 'deepcopi':4,16 'function':6 'json':14,18 'make':8 'marshal/unmarshal':15 'object':12 'packag':3 'provid':5 'use':13 'util':17","created_at":"2026-06-17T17:43:28.968279+00:00","updated_at":"2026-06-17T17:43:28.968279+00:00","problems":[],"ecosystem":"go","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/getlantern/deepcopy","github":"https://github.com/getlantern/deepcopy","docs":"https://pkg.go.dev/github.com/getlantern/deepcopy#section-documentation","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}