You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: donut.go
    path of file: ./repos/merlin/pkg/modules/donut
    
    the code of the file until where you have to start completion: /*
Merlin is a post-exploitation command and control framework.

This file is part of Merlin.
Copyright (C) 2023 Russel Van Tuyl

Merlin is free software: you can redistribute it and/or modi
    
func BytesFromString(assembly string, config *donut.DonutConfig) (*bytes.Buffer, error) {
	// Base64 decode assembly
	data, err := base64.StdEncoding.DecodeString(assembly)
	if err != nil {
		return nil, fmt.Errorf("there was an error base64 decoding the donut assembly:\n%s", err)
	}
	return donut.ShellcodeFromBytes(bytes.NewBuffer(data), config)
}